#[non_exhaustive]pub struct ClassificationPerClassStatistics {
pub accuracy: f64,
pub class_name: String,
pub f_measure: f64,
pub phi_coefficient: f64,
pub precision: f64,
pub recall: f64,
}
Expand description
The detailed result of an evaluation using specific criteria.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.accuracy: f64
The portion of instances in this class that were correctly classified.
class_name: String
The the of this class.
f_measure: f64
The harmonic mean of precision and recall.
phi_coefficient: f64
See Wikipedia.
precision: f64
The fraction of positives that were true positives. (TP / (TP + FP))
recall: f64
The number of true positives over the number of actual positives in the dataset. (TP / (TP + FN))
Trait Implementations§
source§impl<'de> Deserialize<'de> for ClassificationPerClassStatistics
impl<'de> Deserialize<'de> for ClassificationPerClassStatistics
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
Auto Trait Implementations§
impl RefUnwindSafe for ClassificationPerClassStatistics
impl Send for ClassificationPerClassStatistics
impl Sync for ClassificationPerClassStatistics
impl Unpin for ClassificationPerClassStatistics
impl UnwindSafe for ClassificationPerClassStatistics
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