Trait Metric

Source
pub trait Metric {
    // Required methods
    fn add_point(
        &mut self,
        features: &Features<'_>,
        label: &Label,
        prediction: &Prediction,
    );
    fn get_value(&self) -> MetricValue;
    fn get_name(&self) -> String;
}

Required Methods§

Source

fn add_point( &mut self, features: &Features<'_>, label: &Label, prediction: &Prediction, )

Source

fn get_value(&self) -> MetricValue

Source

fn get_name(&self) -> String

Implementors§