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
FIX clone to handle dict and GridSearchCV changing original params #26786
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
GridSearchCV
actually changes the original given parameter if the parameter is an estimator.This PR adds handling
dict
toclone
, and fixes the issue inGridSearchCV
.