Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error about HistGradientBoostingRegressor #15079

Closed
daidai21 opened this issue Sep 24, 2019 · 2 comments
Closed

import error about HistGradientBoostingRegressor #15079

daidai21 opened this issue Sep 24, 2019 · 2 comments

Comments

@daidai21
Copy link

Description

import error

Steps/Code to Reproduce

from sklearn.ensemble import HistGradientBoostingRegressor

Expected Results

Actual Results

from sklearn.ensemble import HistGradientBoostingRegressor
ImportError: cannot import name 'HistGradientBoostingRegressor' from 'sklearn.ensemble'```

#### Versions

win10 and ubuntu18.04
sklearn version is  0.20.1 and 0.21.1

***

I open this source code, can't find code about this function.
@jeremiedbb
Copy link
Member

HistGradientBoostingRegressor is experimental. You need to enable experimental features first:

from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor

@UzunDemir
Copy link

Молодец!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants