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

ERROR: "'float' object is not subscriptable" #313

Closed
ClueChaser opened this issue Apr 7, 2022 · 1 comment
Closed

ERROR: "'float' object is not subscriptable" #313

ClueChaser opened this issue Apr 7, 2022 · 1 comment

Comments

@ClueChaser
Copy link

Python 3.8.12.final.0
Conda 4.12.0
Code exactly the same as in the given notebook, but cannot run BayesianOptimization() due to an error "'float' object is not subscriptable".

This can be fixed with changing -res.fun[0] to -res.fun on 65 and 67 lines in ~\anaconda3\lib\site-packages\bayes_opt\util.py

@bwheelz36
Copy link
Collaborator

thanks! This is the same issue as #300.
there is PR that fixes this, just hasn't been incorporated into code yet
#303

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

2 participants