-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FIX clone to handle dict and GridSearchCV changing original params #26786
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
Conversation
|
Test failure is because |
Confusion solved. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@ogrisel this changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change makes sense and is much better than the double clone from before. LGTM
…cikit-learn#26786) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…cikit-learn#26786) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…26786) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…cikit-learn#26786) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Fixes #26737
It seems
GridSearchCVactually changes the original given parameter if the parameter is an estimator.This PR adds handling
dicttoclone, and fixes the issue inGridSearchCV.