pub struct PerformanceStats {
pub true_positives: u32,
pub true_negatives: u32,
pub false_positives: u32,
pub false_negatives: u32,
pub recall: f32,
pub precision: f32,
pub f1: f32,
pub auc: f32,
}Expand description
Model performance statistics
Fields§
§true_positives: u32True positives
true_negatives: u32True negatives
false_positives: u32False positives
false_negatives: u32False negatives
recall: f32Recall
precision: f32Precision
f1: f32F1
auc: f32AUC
Trait Implementations§
Source§impl Clone for PerformanceStats
impl Clone for PerformanceStats
Source§fn clone(&self) -> PerformanceStats
fn clone(&self) -> PerformanceStats
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 PerformanceStats
impl Debug for PerformanceStats
Source§impl Default for PerformanceStats
impl Default for PerformanceStats
Source§fn default() -> PerformanceStats
fn default() -> PerformanceStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PerformanceStats
impl<'de> Deserialize<'de> for PerformanceStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<ConfusionMatrix<'a>> for PerformanceStats
impl<'a> From<ConfusionMatrix<'a>> for PerformanceStats
Source§fn from(value: ConfusionMatrix<'a>) -> Self
fn from(value: ConfusionMatrix<'a>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PerformanceStats
impl PartialEq for PerformanceStats
Source§impl Serialize for PerformanceStats
impl Serialize for PerformanceStats
impl Copy for PerformanceStats
impl StructuralPartialEq for PerformanceStats
Auto Trait Implementations§
impl Freeze for PerformanceStats
impl RefUnwindSafe for PerformanceStats
impl Send for PerformanceStats
impl Sync for PerformanceStats
impl Unpin for PerformanceStats
impl UnsafeUnpin for PerformanceStats
impl UnwindSafe for PerformanceStats
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