pub struct EvalMetrics {
pub accuracy: f32,
pub mean_loss: f32,
pub n: usize,
pub confusion: Vec<usize>,
pub num_classes: usize,
}Expand description
Classification metrics.
Fields§
§accuracy: f32§mean_loss: f32§n: usize§confusion: Vec<usize>Confusion matrix flattened row-major [num_classes * num_classes].
num_classes: usizeTrait Implementations§
Source§impl Clone for EvalMetrics
impl Clone for EvalMetrics
Auto Trait Implementations§
impl Freeze for EvalMetrics
impl RefUnwindSafe for EvalMetrics
impl Send for EvalMetrics
impl Sync for EvalMetrics
impl Unpin for EvalMetrics
impl UnsafeUnpin for EvalMetrics
impl UnwindSafe for EvalMetrics
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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