No module named sklearn.cross_validation

295

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

Comments

Submit
0 Comments