[go: up one dir, main page]

pub trait Metrics<T> {
    fn new() -> Self
    where
        Self: Sized
; fn new_with(_parameter: f64) -> Self
    where
        Self: Sized
; fn get_score(
        &self,
        y_true: &dyn ArrayView1<T>,
        y_pred: &dyn ArrayView1<T>
    ) -> f64; }
Expand description

A trait to be implemented by all metrics

Required Methods

instantiate a new Metrics trait-object https://doc.rust-lang.org/error-index.html#E0038

used to instantiate metric with a paramenter

compute score realated to this metric

Implementors