Struct rusty_machine::learning::toolkit::cost_fn::MeanSqError
[−]
[src]
pub struct MeanSqError;
The mean squared error cost function.
Trait Implementations
impl Clone for MeanSqError
[src]
fn clone(&self) -> MeanSqError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for MeanSqError
[src]
impl Debug for MeanSqError
[src]
impl CostFunc<Matrix<f64>> for MeanSqError
[src]
fn cost(outputs: &Matrix<f64>, targets: &Matrix<f64>) -> f64
The cost function.
fn grad_cost(outputs: &Matrix<f64>, targets: &Matrix<f64>) -> Matrix<f64>
The gradient of the cost function.