r2 = r2_score(y_test, y_test_predicted)
rmse = mean_squared_error(y_test, y_test_predicted, squared=False)
print("R2: ", r2)
print("RMSE: ", rmse)
The output of the above Python statements will be like the following:
R2: 0.6913464595250509 RMSE: 4.6256421930191784
Please note that if the R-squared score is closer to 1, that means the performance of the model is good.








































0 Comments