Struct tangram_metrics::MulticlassClassificationMetricsOutput[][src]

pub struct MulticlassClassificationMetricsOutput {
    pub class_metrics: Vec<ClassMetrics>,
    pub accuracy: f32,
    pub precision_unweighted: f32,
    pub precision_weighted: f32,
    pub recall_unweighted: f32,
    pub recall_weighted: f32,
}
Expand description

Fields

class_metrics: Vec<ClassMetrics>

The class metrics contain class specific metrics.

accuracy: f32

The accuracy is the fraction of all of the predictions that are correct.

precision_unweighted: f32

The unweighted precision equal to the mean of each class’s precision.

precision_weighted: f32

The weighted precision is a weighted mean of each class’s precision weighted by the fraction of the total examples in the class.

recall_unweighted: f32

The unweighted recall equal to the mean of each class’s recall.

recall_weighted: f32

The weighted recall is a weighted mean of each class’s recall weighted by the fraction of the total examples in the class.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.