Skip to content

Commit

Permalink
Merge pull request scikit-learn#6292 from yenchenlin1994/fix-error-me…
Browse files Browse the repository at this point in the history
…ssage-in-check-cv

[MRG] DOC Fix check_cv error message
  • Loading branch information
amueller committed Feb 9, 2016
2 parents f7f82b9 + 604e1e0 commit b7998c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/model_selection/_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ def check_cv(cv=3, y=None, classifier=False):
if not isinstance(cv, Iterable) or isinstance(cv, str):
raise ValueError("Expected cv as an integer, cross-validation "
"object (from sklearn.model_selection) "
"or and iterable. Got %s." % cv)
"or an iterable. Got %s." % cv)
return _CVIterableWrapper(cv)

return cv # New style cv objects are passed without any modification
Expand Down

0 comments on commit b7998c2

Please sign in to comment.