-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Cannot import UtilityFunction #544
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
Comments
Hi @DorianP-cmd, the function exists in Are you sure you're using v1.0.1? It's a very old release. |
I assume the problem is fixed. Feel free to re-open if you encounter it again. |
Hello, I have the same issue. I installed with pip. I checked for the class in util.py but could not find it... |
It looks like it was removed when the API changed during July of 2024: a6697aa |
Hey @SeiDPierre, this is indeed the case. You can install an older version (pre 2.0 should be fine). Why do you need the |
In deed, I had a look at version just before 2 and everything I need is there. I agree with you regarding versioning héhé. I'm just dealing with a new project that need some serious cleaning. Thanks for your reply. |
Hello!
I encountered this error, that I cannot import the UtilityFuntion.
"ImportError: cannot import name 'UtilityFunction' from 'bayes_opt.util' (C:\Users\doria\AppData\Roaming\Python\Python313\site-packages\bayes_opt\util.py)"
Is it not available on version 1.0.1 or was it moved somewhere?
Thanks in advance
The text was updated successfully, but these errors were encountered: