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

Skip to content

repeated k-fold #7948

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
amueller opened this issue Nov 28, 2016 · 7 comments · Fixed by #8120
Closed

repeated k-fold #7948

amueller opened this issue Nov 28, 2016 · 7 comments · Fixed by #8120
Labels
Easy Well-defined and straightforward way to resolve New Feature

Comments

@amueller
Copy link
Member

We should add repeated k-fold cross-validation. It's something a lot of people use, and it's tricky to implement in scikit-learn. In particular with the recent changes to cross-validation,

cv = KFold(shuffle=True)
results = []
for i in range(10):
    results.append(cross_val_score(est, X, y, cv=cv))

yields repeated cross-validation in 0.17 and 0.18, but not in 0.18.1 or dev (I think?)

We could do this with a wrapper that sets the random_state or we could explicitly write RepeatedKFold and RepeatedStratifiedKFold.

@amueller amueller added Easy Well-defined and straightforward way to resolve Need Contributor New Feature labels Nov 28, 2016
@jnothman
Copy link
Member

jnothman commented Nov 29, 2016 via email

@amueller
Copy link
Member Author

You are right, this is still the same as it has been in 0.17, but would change with #7935.

@GaelVaroquaux
Copy link
Member

GaelVaroquaux commented Nov 29, 2016 via email

@amueller
Copy link
Member Author

Yeah that's where I'm leaning to, too.

@neerajgangwar
Copy link
Contributor

I would like to work on this one.

@amueller
Copy link
Member Author

@neerajgangwar go ahead!

@neerajgangwar
Copy link
Contributor

@amueller I pushed initial commit. Can you please check and see if I am going in the right direction? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Well-defined and straightforward way to resolve New Feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants