R^2 score is different in sklearn than MS-Excel RSQ() function. #28788
-
I'm trying to find R^2 score for my dataframe through
but in ms-excel(by using I can't show my data, so I have given a sample data above.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The definition used in scikit-learn is documented here: https://scikit-learn.org/dev/modules/model_evaluation.html#r2-score |
Beta Was this translation helpful? Give feedback.
-
so basically |
Beta Was this translation helpful? Give feedback.
so basically
RSQ()
function in excel gives Pearson correlation coefficient whereassklearn.metrics.r2_score
gives coefficients of determination.