Skip to content

[source]

Mean Squared Error#

A scale-dependent regression metric that gives greater weight to error scores the worse they are. Formally, Mean Squared Error (MSE) is the average of the squared differences between a set of predictions and their target labels.

MSE=1ni=1n(YiYi^)2

Note

In order to maintain the convention of maximizing validation scores, this metric outputs the negative of the original score.

Estimator Compatibility: Regressor

Output Range: -∞ to 0

Parameters#

This metric does not have any parameters.

Example#

use Rubix\ML\CrossValidation\Metrics\MeanSquaredError;

$metric = new MeanSquaredError();

Last update: 2021-01-26