Skip to content

TypeError: cross_val_score() got an unexpected keyword argument 'score_func' #1

Description

@SeekPoint

rzai@rzai00:/prj/zmusic_code$ python model.py
/usr/local/lib/python2.7/dist-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
Traceback (most recent call last):
File "model.py", line 93, in
scores = validate(train_examples)
File "model.py", line 84, in validate
scores = cross_val_score(clf, X, y, cv=2, score_func=rmse)
TypeError: cross_val_score() got an unexpected keyword argument 'score_func'
rzai@rzai00:
/prj/zmusic_code$

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