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

'float' object is not subscriptable #336

Closed
keinccgithub opened this issue Jul 14, 2022 · 3 comments
Closed

'float' object is not subscriptable #336

keinccgithub opened this issue Jul 14, 2022 · 3 comments

Comments

@keinccgithub
Copy link

When I run first example in the Basic tour in python, it is wrong as:

---> 65 if max_acq is None or -res.fun[0] >= max_acq:
     66     x_max = res.x
     67     max_acq = -res.fun[0]

TypeError: 'float' object is not subscriptable

Is the origin code in "bayes_opt" wrong??

@till-m
Copy link
Member

till-m commented Jul 14, 2022

I think this is fixed in a PR (#303), see also #300 #313 #333.

I guess the question is when a new release will be made that pushes these changes to PI's.

@till-m
Copy link
Member

till-m commented Jul 14, 2022

For now the best fix for you might be installing from github as mentioned in the readme:
pip install git+https://github.com/fmfn/BayesianOptimization

@bwheelz36
Copy link
Collaborator

At the moment I have rights to manage this code, but not rights to release it on pypi. This is why it's taking a long time to get a new release.

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