【发布时间】:2017-06-09 20:58:30
【问题描述】:
我尝试运行这一行:
从 sklearn.model_selection 导入 GridSearchCV
但我得到了一个 ImportError(即没有名为 model_selection 的模块),尽管我已经安装了 sklearn 并且我可以导入其他包。这是我的python版本:
2.7.12 |Anaconda 4.2.0(64 位)| (默认,2016 年 6 月 29 日,11:07:13)[MSC v.1500 64 位 (AMD64)]
有没有办法在我当前的版本上使用“sklearn.model_selection”?
【问题讨论】:
标签: python-2.7 module scikit-learn grid-search