赞
踩
from sklearn.grid_search import GridSearchCV时报错:
from sklearn.ensemble import RandomForestClassifier
from sklearn.grid_search import GridSearchCV
ModuleNotFoundError Traceback (most recent call
last) ~\AppData\Local\Temp/ipykernel_13796/2171051172.py in
1 from sklearn.ensemble import RandomForestClassifier
----> 2 from sklearn.grid_search import GridSearchCVModuleNotFoundError: No module named ‘sklearn.grid_search’
sklearn版本更新
将from sklearn.grid_search import GridSearchCV换成from sklearn.model_selection import GridSearchCV
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。