Machine Learning, Data Science, Deep Learning, Artificial Intelligence, Regression.
%.2f" % np.mean(np.absolute(y_hat - test_y))) print("Residual sum of squares (MSE): %.2f" % np.mean((y_hat - test_y) ** 2)) from sklearn.metrics import r2_score print("R2-score: %.2f" % r2_score(y_hat , test_y) Mean absolute error: 0.05 Residual sum of squares (MSE): 0.00 R2-score: 0.95 Thanks for