'module' object has no attribute 'cross_validation'

在sklearn的0.20.2版本中 cross_validation已被更改成model_selection

将from sklearn import cross_validation改为

from sklearn import model_selection即可

posted @ 2019-03-13 21:29  神不咙哚儿  阅读(474)  评论(0编辑  收藏  举报