This documentation is for scikit-learn version 0.11-gitOther versions

Citing

If you use the software, please consider citing scikit-learn.

This page

8.16.2.2. sklearn.metrics.mean_square_error

sklearn.metrics.mean_square_error(y_true, y_pred)

Mean square error regression loss

Positive floating point value: the best value is 0.0.

return the mean square error

Parameters :

y_true : array-like

y_pred : array-like

Returns :

loss : float