Skip to content
EvalSuite
Documentation menu

Regression

Mean squared error

Implementedregression.mse

Definition

Average squared difference between predictions and targets.

Formula

MSE = (1/N) Σᵢ (yᵢ − ŷᵢ)²

Range: [0, ∞)

Inputs and outputs

  • y_true: array of real targets
  • y_pred: array of real predictions
  • sample_weight: optional

Returns: float

Assumptions

No assumptions beyond valid, aligned inputs of the documented types.

Limitations

  • Sensitive to outliers because errors are squared.

Python API

PythonSince v0.1.0
import evalsuite as es

es.mse(y_true_r, y_pred_r)

References

Primary references for this entry have not been added yet.

Implementation status