Answers for "ModuleNotFoundError: No module named 'sklearn.cross_validation'"

13

ModuleNotFoundError: No module named 'sklearn.cross_validation'

Substitute cross_validation to model_selection
Posted by: Guest on May-17-2020
1

ModuleNotFoundError: No module named 'sklearn.cross_validation'

#train_test_split is now in model_selection. Just type:

from sklearn.model_selection import train_test_split
#it should work
Posted by: Guest on April-25-2021
1

No module named 'sklearn.cross_validation'

#Substitute cross_validation to model_selection
from sklearn.model_selection import train_test_split
Posted by: Guest on February-01-2021
0

cannot import name 'cross_validation' from 'sklearn'

from sklearn.model_selection import train_test_split
Posted by: Guest on December-31-2020
3

ModuleNotFoundError: No module named 'sklearn.cross_validation'

ImportError: No module named sklearn.cross_validation
Posted by: Guest on May-07-2020

Code answers related to "ModuleNotFoundError: No module named 'sklearn.cross_validation'"

Browse Popular Code Answers by Language