Skip to content

DOC Correct best_score_ doc in RidgeCV #15859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

qinhanmin2014
Copy link
Member

See #15655
Sorry @glemaitre my review in that PR is wrong. best_score_ in RidgeCV is not the mean cross-validated score when cv is None and scoring is not None. Instead, the score is obtained from the output of cross_val_predict.
I think this is annoying, i.e., RidgeCV(scoring="r2") is different from GridSearchCV(Ridge(), cv=LeaveOneOut(), scoring="r2").

@glemaitre glemaitre merged commit c7fccc6 into scikit-learn:master Dec 11, 2019
@glemaitre
Copy link
Member

Thanks @qinhanmin2014, I did not think it throw when mentioned.

@qinhanmin2014 qinhanmin2014 deleted the ridgedoc branch December 27, 2019 13:21
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants