We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f63ac6e + 50dfa86 commit 62b48b9Copy full SHA for 62b48b9
examples/linear_model/plot_ols.py
@@ -50,8 +50,8 @@
50
51
# The coefficients
52
print('Coefficients: \n', regr.coef_)
53
-# The mean square error
54
-print("Residual sum of squares: %.2f"
+# The mean squared error
+print("Mean squared error: %.2f"
55
% np.mean((regr.predict(diabetes_X_test) - diabetes_y_test) ** 2))
56
# Explained variance score: 1 is perfect prediction
57
print('Variance score: %.2f' % regr.score(diabetes_X_test, diabetes_y_test))
0 commit comments