Loss

Trait Loss 

Source
pub trait Loss<T: Clone> {
    // Required methods
    fn l(&self, output: &Array1<f64>, target: &T) -> f64;
    fn d_l(&self, output: &Array1<f64>, target: &T) -> Array1<f64>;
}

Required Methods§

Source

fn l(&self, output: &Array1<f64>, target: &T) -> f64

Source

fn d_l(&self, output: &Array1<f64>, target: &T) -> Array1<f64>

Implementors§