[英]IMPORT ERROR when importing from sklearn.ensemble?
I received an import error when importing the HistGradientBooostingClassifier from sklearn.ensemble从 sklearn.ensemble 导入 HistGradientBooostingClassifier 时收到导入错误
I typed in jupyter notebook:我在 jupyter notebook 中输入:
'from sklearn.ensemble import HistGradientBoostingClassifier' '从 sklearn.ensemble 导入 HistGradientBoostingClassifier'
The first result from a (US) Google search for ImportError from sklearn.ensemble import HistGradientBoostingClassifier
is this issue from the scikit-learn
repo on Github. (美国)谷歌搜索
ImportError from sklearn.ensemble import HistGradientBoostingClassifier
的第一个结果是scikit-learn
上的 scikit-learn 存储库中的这个问题。
HistGradientBoostingRegressor is experimental.
HistGradientBoostingRegressor 是实验性的。 You need to enable experimental features first:
您需要先启用实验功能:
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.