Skip to content
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

sklearn.cross_validation.KFold updates #2

Open
aedunn6 opened this issue Mar 11, 2015 · 2 comments
Open

sklearn.cross_validation.KFold updates #2

aedunn6 opened this issue Mar 11, 2015 · 2 comments

Comments

@aedunn6
Copy link

aedunn6 commented Mar 11, 2015

Running crossValidate.py with the latest version of sklearn gave this error:

Traceback (most recent call last):
File "crossValidate.py", line 29, in
main()
File "crossValidate.py", line 16, in main
cv = cross_validation.KFold(len(train), k=5, indices=False)
TypeError: init() got an unexpected keyword argument 'k'

Changing "k=5" to "n_folds=5", per the documentation fixed the error.

However, I then got this warning:

DeprecationWarning: The indices parameter is deprecated and will be removed (assumed True) in 0.17
stacklevel=1)

@PNR-1
Copy link

PNR-1 commented Oct 6, 2016

This means that the indices argument will no longer be supported and a warning to alter your code before the next release. Its to make sure your code doesn't break all of a sudden.

@kareemkhater
Copy link

means that the indices argument will no longer be supported and a warning to alter your code before the next release. Its to make sure your code doesn't break all of a sudden.

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

No branches or pull requests

3 participants