Warning: This documentation is for scikits.learn version 0.7.1. — Latest stable version

Contents

6.9.15. scikits.learn.metrics.mean_square_error

scikits.learn.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_trye : array-like

y_pred : array-like

Returns :

loss : float