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.17.2.2. sklearn.metrics.mean_squared_error

sklearn.metrics.mean_squared_error(y_true, y_pred)

Mean squared error regression loss

Return a a positive floating point value (the best value is 0.0).

Parameters :

y_true : array-like

y_pred : array-like

Returns :

loss : float