Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sklearn.cross_validation.KFold updates #2

Copy link
Copy link
@aedunn6

Description

@aedunn6
Issue body actions

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.