Skip to content

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

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

Closed
wants to merge 1 commit into from

Conversation

Erotemic
Copy link
Contributor

@Erotemic Erotemic commented Aug 2, 2016

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

amueller commented Aug 2, 2016

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

@amueller
Copy link
Member

amueller commented Aug 5, 2019

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