Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FIX BaseSuccessiveHalving class groups support #19847

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 6 commits into from
Apr 12, 2021

Conversation

xiaoyuchai
Copy link
Contributor

Reference Issues/PRs

Fix #19841

What does this implement/fix? Explain your changes.

Enable groups in the fit method of BaseSuccessiveHalving class by revoking groups=None.

Any other comments?

@TomDLT TomDLT changed the title Fix #19841 FIX BaseSuccessiveHalving class groups support Apr 8, 2021
@NicolasHug
Copy link
Member

Thanks @xiaoyuchai , this looks good. Would you mind adding a new non-regression test called test_groups_support, something very similar to

def test_grid_search_groups():
which would test both HalvingRandomSearchCV and HalvingGridSearchCV? The new test should be in sklearn/model_selection/tests/test_successive_halving.py

@NicolasHug
Copy link
Member

We would also need a new |FIX| entry in doc/whats_new/v1.0.rst :)

@NicolasHug NicolasHug added this to the 1.0 milestone Apr 9, 2021
@xiaoyuchai
Copy link
Contributor Author

Thanks, @NicolasHug . Yes, added testing method and documentation. Cheers!

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @xiaoyuchai , some last comments but LGTM when addressed!

doc/whats_new/v1.0.rst Outdated Show resolved Hide resolved
sklearn/model_selection/tests/test_successive_halving.py Outdated Show resolved Hide resolved
@NicolasHug NicolasHug merged commit f1018c6 into scikit-learn:main Apr 12, 2021
@NicolasHug
Copy link
Member

Thanks @xiaoyuchai !

@xiaoyuchai xiaoyuchai deleted the xiaoyuchai/bug_fix_19841 branch April 12, 2021 16:03
thomasjpfan pushed a commit to thomasjpfan/scikit-learn that referenced this pull request Apr 19, 2021
Co-authored-by: Shawn <shawn@mpirica.com>
Co-authored-by: Nicolas Hug <nicolashug@fb.com>
@glemaitre glemaitre mentioned this pull request Apr 22, 2021
12 tasks
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 22, 2021
Co-authored-by: Shawn <shawn@mpirica.com>
Co-authored-by: Nicolas Hug <nicolashug@fb.com>
glemaitre pushed a commit that referenced this pull request Apr 28, 2021
Co-authored-by: Shawn <shawn@mpirica.com>
Co-authored-by: Nicolas Hug <nicolashug@fb.com>
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.

Fit method in BaseSuccessiveHalving class does not support groups.
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.