报错No module named sklearn cross_validation

No module named 'sklearn.cross_validation'

 

  • sklearn中已经废弃cross_validation,将其中的内容整合到model_selection中
  • 将sklearn.cross_validation 替换为 sklearn.model_selection

 

 

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页