Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

r2 score sklearn

from sklearn.metrics import r2_score
y_true = [3, -0.5, 2, 7]
y_pred = [2.5, 0.0, 2, 8]
r2_score(y_true, y_pred)
 
PREVIOUS NEXT
Tagged: #score #sklearn
ADD COMMENT
Topic
Name
2+5 =