IMPORT ERROR when importing from sklearn.ensemble?
Question:
Answers:
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.
HistGradientBoostingRegressor is experimental. You need to enable experimental features first:
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor
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.
HistGradientBoostingRegressor is experimental. You need to enable experimental features first:
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor