Machine Learning, Data Science, Artificial Intelligence, Programming, Technology.
let's check the R2 score, The coefficient of determination from sklearn.metrics import r2_score r_score = r2_score(y_hat, test_y) print("R2-score: %.2f" % r_score) >> Mean absolute error: 0.04 Residual sum of squares (MSE): 0.00 R2-score: 0.95 MAE = 0.4; MSE = 0.0. ; R2-score = 0.95 (95%) Summary: