pub struct ClassMetrics {
pub precision: f64,
pub recall: f64,
pub f1_score: f64,
pub support: usize,
}Expand description
Metrics for a single class
Fields§
§precision: f64Precision: TP / (TP + FP)
recall: f64Recall: TP / (TP + FN)
f1_score: f64F1-score: 2 * (precision * recall) / (precision + recall)
support: usizeNumber of true instances for this class
Trait Implementations§
Source§impl Clone for ClassMetrics
impl Clone for ClassMetrics
Source§fn clone(&self) -> ClassMetrics
fn clone(&self) -> ClassMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassMetrics
impl Debug for ClassMetrics
impl Copy for ClassMetrics
Auto Trait Implementations§
impl Freeze for ClassMetrics
impl RefUnwindSafe for ClassMetrics
impl Send for ClassMetrics
impl Sync for ClassMetrics
impl Unpin for ClassMetrics
impl UnwindSafe for ClassMetrics
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