sklearn更新后执行下面的可能会报错
from sklearn.cross_validation import train_test_split
报错ImportError: cannot import name 'cross_validation'
解决方法:
库路径变了
改为:
from sklearn.model_selection import KFold
from sklearn.model_selection import train_test_split
其他的一些方法比如cross_val_score都放在model_selection下了
引用时使用from sklearn.model_selection import cross_val_score