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
The output from MulticlassClassificationMetrics
.
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§
Auto Trait Implementations§
impl Freeze for MulticlassClassificationMetricsOutput
impl RefUnwindSafe for MulticlassClassificationMetricsOutput
impl Send for MulticlassClassificationMetricsOutput
impl Sync for MulticlassClassificationMetricsOutput
impl Unpin for MulticlassClassificationMetricsOutput
impl UnwindSafe for MulticlassClassificationMetricsOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more