Skip to content

DOC make explicit that groups required *Group* splitter#14235

Merged
thomasjpfan merged 1 commit intoscikit-learn:masterfrom
glemaitre:is/doc_group_cv
Jul 2, 2019
Merged

DOC make explicit that groups required *Group* splitter#14235
thomasjpfan merged 1 commit intoscikit-learn:masterfrom
glemaitre:is/doc_group_cv

Conversation

@glemaitre
Copy link
Copy Markdown
Member

@glemaitre glemaitre commented Jul 2, 2019

closes #11406

Make explicit that the parameter groups requires Group splitter from model_selection.

@glemaitre
Copy link
Copy Markdown
Member Author

glemaitre commented Jul 2, 2019

ping @rth @amueller @jnothman

Copy link
Copy Markdown
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

Copy link
Copy Markdown
Member

@jnothman jnothman left a 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.

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a 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.

@thomasjpfan thomasjpfan merged commit e68f6f3 into scikit-learn:master Jul 2, 2019
@jnothman jnothman added this to the 0.20.4 milestone Jul 2, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Jul 23, 2019
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cross_val_predict with groups input: is it used?

4 participants