[英]IMPORT ERROR when importing from sklearn.ensemble?
(美國)谷歌搜索ImportError from sklearn.ensemble import HistGradientBoostingClassifier
的第一個結果是scikit-learn
上的 scikit-learn 存儲庫中的這個問題。
HistGradientBoostingRegressor 是實驗性的。 您需要先啟用實驗功能:
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.