pub enum F1Average {
Macro,
Micro,
Weighted,
}Expand description
Averaging strategy for multi-class F1 score.
Variants§
Macro
Compute F1 per class and average (unweighted).
Micro
Compute global TP/FP/FN then derive a single F1.
Weighted
Compute F1 per class and average weighted by support (class count in targets).
Trait Implementations§
impl Copy for F1Average
impl Eq for F1Average
impl StructuralPartialEq for F1Average
Auto Trait Implementations§
impl Freeze for F1Average
impl RefUnwindSafe for F1Average
impl Send for F1Average
impl Sync for F1Average
impl Unpin for F1Average
impl UnsafeUnpin for F1Average
impl UnwindSafe for F1Average
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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