Trait juggernaut::cost::CostFunction
[−]
[src]
pub trait CostFunction { fn calc(&self, prediction: &Matrix, target: &Matrix) -> f64; fn name(&self) -> CostFunctions; }
Trait of cost functions
Required Methods
Implementors
impl CostFunction for SquaredError
impl CostFunction for CrossEntropy