python sklearn.cross_validation 模块导入失败

 

 参考链接: https://blog.csdn.net/Jae_Peng/article/details/79277920

解决办法:

原来在 cross_validation 里面的函数都放在 model_selection 里面了;

 

from sklearn.model_selection import GridSearchCV

from sklearn.model_selection import train_test_split

 

posted on 2018-11-21 20:40  洛珈山下  阅读(11997)  评论(0编辑  收藏  举报

导航