Trait MeanSquaredError

Source
pub trait MeanSquaredError {
    type Output;

    // Required method
    fn mse(&self) -> Self::Output;
}
Expand description

The MeanSquaredError (MSE) is the average of the squared differences between the ($$\hat{y_{i}}$$) and actual values ($y_{i}$):

Err = \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y}_i)^2

Required Associated Types§

Required Methods§

Source

fn mse(&self) -> Self::Output

Implementations on Foreign Types§

Source§

impl<A, S, D> MeanSquaredError for ArrayBase<S, D>
where A: Float + FromPrimitive + ScalarOperand, D: Dimension, S: Data<Elem = A>,

Source§

type Output = A

Source§

fn mse(&self) -> Self::Output

Implementors§