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

pub struct CrossEntropyError;

The cross entropy error cost function.

Trait Implementations

impl Debug for CrossEntropyError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for CrossEntropyError
[src]

impl Clone for CrossEntropyError
[src]

fn clone(&self) -> CrossEntropyError

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 CostFunc<Matrix<f64>> for CrossEntropyError
[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.

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

fn cost(outputs: &Vector<f64>, targets: &Vector<f64>) -> f64

The cost function.

fn grad_cost(outputs: &Vector<f64>, targets: &Vector<f64>) -> Vector<f64>

The gradient of the cost function.