Struct rusty_machine::learning::nnet::MSECriterion [] [src]

pub struct MSECriterion;

The mean squared error criterion.

Uses the Linear activation function and the mean squared error.

Trait Implementations

impl Debug for MSECriterion
[src]

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

Formats the value using the given formatter.

impl Copy for MSECriterion
[src]

impl Clone for MSECriterion
[src]

fn clone(&self) -> MSECriterion

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 Criterion for MSECriterion
[src]

type ActFunc = Linear

The activation function for the criterion.

type Cost = MeanSqError

The cost function for the criterion.

fn activate(&self, mat: Matrix<f64>) -> Matrix<f64>

The activation function applied to a matrix.

fn grad_activ(&self, mat: Matrix<f64>) -> Matrix<f64>

The gradient of the activation function applied to a matrix.

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

The cost function. Read more

fn cost_grad(&self, outputs: &Matrix<f64>, targets: &Matrix<f64>) -> Matrix<f64>

The gradient of the cost function. Read more