-
-
Notifications
You must be signed in to change notification settings - Fork 26k
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 <[email protected]>
…cikit-learn#26786) Co-authored-by: Thomas J. Fan <[email protected]>
…26786) Co-authored-by: Thomas J. Fan <[email protected]>
…cikit-learn#26786) Co-authored-by: Thomas J. Fan <[email protected]>
Fixes #26737
It seems
GridSearchCV
actually changes the original given parameter if the parameter is an estimator.This PR adds handling
dict
toclone
, and fixes the issue inGridSearchCV
.