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

ImportError: cannot import name 'enable_successive_halving' from 'sklearn.experimental' #18466

Closed
arioboo opened this issue Sep 26, 2020 · 4 comments

Comments

@arioboo
Copy link

arioboo commented Sep 26, 2020

Describe the issue linked to the documentation

I were trying to build an HTML documentation of scikit-learn branch master from the doc subdir, following Documentation.

I installed those packages within my Anaconda environment (there is no sense to be different, but ofc it'll be). The error comes when I'm trying to make html, then it throws:

ImportError: cannot import name 'enable_successive_halving' from 'sklearn.experimental'

Suggest a potential alternative/fix

Please, fix this behaviour, or tell me how to nicely get an html documentation.

Thanks.

@makermotion
Copy link

I don't know which of the packages tries to import enable_successive_halving when you make html but that module does not seem to be in sklearn.experimental. See https://github.com/scikit-learn/scikit-learn/tree/master/sklearn/experimental.

Although; this PR #18563 seems to be changing the name from enable_successive_halving to enable_halving_search_cv if I did not get it wrong.

I suggest you to find out which part of your code imports the name and try to change it.

@NicolasHug
Copy link
Member

Do you still have the same issue with the latest master branch @arioboo ?

@tnwei
Copy link
Contributor

tnwei commented Oct 13, 2020

Followed the steps and built docs w/o issue using branch master. Is it possible that this is a setup issue? If you still have the full stacktrace, posting it here will help provide context.

@cmarmo
Copy link
Member

cmarmo commented Nov 23, 2020

Hi @arioboo thanks for reaching out. The issue is not reproducible in master, and information is missing about your installation. I'm closing this one. Feel free to reopen if you are still experimenting the issue and you can provide more details.

@cmarmo cmarmo closed this as completed Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants