scikit learn r2 score

Solutions on MaxInterview for scikit learn r2 score by the best coders in the world

showing results for - "scikit learn r2 score"
Helena
14 Jun 2018
1from sklearn.metrics import r2_score
2r2_score(y_true, y_pred)
Bridie
20 Jul 2018
1from sklearn.metrics import r2_score
2y_true = [3, -0.5, 2, 7]
3y_pred = [2.5, 0.0, 2, 8]
4r2_score(y_true, y_pred)