Struct rusty_machine::learning::toolkit::cost_fn::CrossEntropyError [] [src]

pub struct CrossEntropyError;

The cross entropy error cost function.

Trait Implementations

impl CostFunc<Matrix<f64>> for CrossEntropyError
[src]

fn cost(output: &Matrix<f64>, target: &Matrix<f64>) -> f64

The cost function.

fn grad_cost(output: &Matrix<f64>, target: &Matrix<f64>) -> Matrix<f64>

The gradient of the cost function.