成功解决ModuleNotFoundError: No module named ‘sklearn.grid_search‘

成功解决ModuleNotFoundError: No module named 'sklearn.grid_search'


解决问题

ModuleNotFoundError: No module named 'sklearn.grid_search'

解决思路

未找到模块错误:没有名为'sklearn.grid_search'

解决方法


from sklearn.grid_search import GridSearchCV
改为
from sklearn.model_selection import GridSearchCV

哈哈,大功告成!

(0)

相关推荐