You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from sklearn.cross_validation import train_test_split, LabelKFold
'''.......DeprecationWarning'''
a=LabelKFold(4)
TypeError: object of type 'int' has no len()
a=LabelKFold(n_folds=4)
TypeError: __init__() takes at least 2 arguments (2 given)
There will be no problem if :
from sklearn.model_selection import LabelKFold
The text was updated successfully, but these errors were encountered:
OK, I think this is not a problem as the warning message already indicate the differences of two LabelKFold method.
from sklearn.cross_validation import train_test_split, LabelKFold
/usr/local/lib/python2.7/dist-packages/sklearn/cross_validation.py:43: DeprecationWarning: This module has been deprecated 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)
Cloned sklearn today 7-7-2016
sklearn.version
'0.18.dev0'
There will be no problem if :
The text was updated successfully, but these errors were encountered: