-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
DOC make explicit that groups required *Group* splitter #14235
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
1ba69b9
to
c0e3f60
Compare
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
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.
Thanks for this. Our handling of groups is a bit inconsistent with how we handle sample_weight, which will raise an error if passed and not used. We should probably be raising a warning in other splitters when groups
is passed.
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.
Should we also place this in the docstring of the *Split
classes in sklearn/model_selection/_split.py
?
Edit: Lets not.
closes #11406
Make explicit that the parameter
groups
requires Group splitter frommodel_selection
.