Realm

oa::ml::metric::ClassificationCounts

Per-class prediction/label counts behind precision_recall_f1.

StRust public API

Declaration

pub struct ClassificationCounts { pub true_positives: u64, pub false_positives: u64, pub true_negatives: u64, pub false_negatives: u64, }
Public Rust declaration.

Public Methods

pub fn precision(&self) -> f32
pub fn recall(&self) -> f32
pub fn f1(&self) -> f32
fn clone(&self) -> ClassificationCounts
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &ClassificationCounts) -> bool

Associated Functions

fn default() -> ClassificationCounts

Public Data Members

true_positivesu64field
false_positivesu64field
true_negativesu64field
false_negativesu64field

Public Method Documentation

pub fn precision( &self ) -> f32
No public source comment is attached to this declaration.
pub fn recall( &self ) -> f32
No public source comment is attached to this declaration.
pub fn f1( &self ) -> f32
No public source comment is attached to this declaration.
fn clone( &self ) -> ClassificationCounts
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &ClassificationCounts ) -> bool
No public source comment is attached to this declaration.
fn default() -> ClassificationCounts
No public source comment is attached to this declaration.