python错误:No module named 'sklearn.cross_validation'

调用from sklearn.cross_validation import train_test_split时,
发现错误:No module named 'sklearn.cross_validation’
更改为sklearn.model_selection即可

from sklearn.model_selection import train_test_split

猜你喜欢

转载自blog.csdn.net/weixin_38648232/article/details/85062886
0条评论
添加一条新回复
  
今日推荐