Skip to content

Changed signature of CV split to accept X=None - #7128

Closed
Erotemic wants to merge 1 commit into
scikit-learn:masterfrom
Erotemic:kfold_split_sig
Closed

Erotemic wants to merge 1 commit into
scikit-learn:masterfrom
Erotemic:kfold_split_sig

Conversation

@Erotemic

@Erotemic Erotemic commented Aug 2, 2016

Copy link
Copy Markdown
Contributor

Reference Issue

#7126

What does this implement/fix? Explain your changes.

This allows the split methods of cross validation classes such as model_selection.StratifiedKFold
to accept None as the value of the X data parameter. The X parameter is not used in the
functions except to introspect the number of sample which can also be introspected from y (which is given and used in the supervised case).

I added the appropriate tests to cover this new behavior as well as updated the documentation appropriately.

@amueller

amueller commented Aug 2, 2016

Copy link
Copy Markdown
Member

one might argue that just providing labels would also be enough?

@amueller

amueller commented Aug 5, 2019

Copy link
Copy Markdown
Member

decision in #7593 was to not do this apparently, so closing.

@amueller amueller closed this Aug 5, 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.

2 participants