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 deprecation warning #29

Open
apiszcz opened this issue Nov 7, 2017 · 1 comment
Open

sklearn\cross_validation deprecation warning #29

apiszcz opened this issue Nov 7, 2017 · 1 comment

Comments

@apiszcz
Copy link

apiszcz commented Nov 7, 2017

sklearn 0.19.1

lib\sklearn\cross_validation.py:41: 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)
@vnnw
Copy link

vnnw commented Dec 15, 2017

You just need to modify two lines in file 'pylibfm.py' to get rid of the warning message as below:

# line 2
# from sklearn import cross_validation 
from sklearn.model_selection import train_test_split

# line 176
# X_train, validation, train_labels, validation_labels = cross_validation.train_test_split(
X_train, validation, train_labels, validation_labels = train_test_split(

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

2 participants