Skip to content
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

[MRG] FIX len() of ParameterSampler #18222

Merged
merged 2 commits into from Aug 21, 2020

Conversation

NicolasHug
Copy link
Member

When the param grid is given as all lists in RandomizedSearchCV, we fall back to a GridSearch-like behaviour. The __len__ magic was incorrect in this case when we ask for more candidates than what's actually possible.

Copy link
Contributor

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@amueller amueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Does this fix all of #18057 though?

@NicolasHug
Copy link
Member Author

No it doesn't fix #18057

@amueller amueller merged commit 28c1ed4 into scikit-learn:master Aug 21, 2020
7 checks passed
@NicolasHug
Copy link
Member Author

thanks for the quick reviews!

jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants