python – ImportError: cannot import name cross_validation from sklearn

python – ImportError: cannot import name cross_validation from sklearn

cross_validation is deprecated since version 0.18. This module will be removed in 0.20.

n

Use sklearn.model_selection.train_test_split instead.

n

from sklearn.model_selection import train_test_splitn

n

More:nsklearn 0.19 docs

python – ImportError: cannot import name cross_validation from sklearn

Leave a Reply

Your email address will not be published.