6.9.12. scikits.learn.metrics.r2_score¶
- scikits.learn.metrics.r2_score(y_true, y_pred)¶
R^2 (coefficient of determination) regression score function
Best possible score is 1.0, lower values are worse.
Note: not a symmetric function.
return the R^2 score
Parameters : y_true : array-like
y_pred : array-like