Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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!

@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
@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
glemaitre pushed a commit that referenced this pull request Apr 28, 2021
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