Closed valentinosantucci closed 3 years ago
Hi, I could not repro, which version of nevergrad and bayes_opt are you using? Can you reproduce it on master?
Hello, thanks for the reply. I am using nevergrad 0.4.2post1 and bayes_opt 1.2.0. Both running on windows with last Anaconda 3 with all modules updated.
Does it happen all the time? I won't be able to do much if I can't reproduce it :s
@goldengod There are recent bug fixes on BO that are not in 0.4.2post1. As jrapin said try the master repo.
@jrapin Perhaps make a new release as there are bug fixes since 0.4.2.post1.
I just updated to the very recent 0.4.2.post2 and everything works correctly. Thank you!
I thought all the fixes had been included but indeed some were missing, thanks @fsmosca Closing this then, please open another issue if you have new problems ;)
Steps to reproduce
import nevergrad as ng import numpy as np p = ng.p.Array(shape=(2,)) lb,ub = np.ones(2)-5,np.ones(2)5 p.set_bounds(lb,ub) o = ng.optimizers.BO(parametrization=p,budget=100) def square(x): return np.sum(x**2) r = o.minimize(square)
Observed Results
StopIteration Traceback (most recent call last) ~\anaconda3\lib\site-packages\nevergrad\optimization\optimizerlib.py in _internal_ask_candidate(self) 1456 try: -> 1457 x_probe = next(self.bo._queue) 1458 except StopIteration:
~\anaconda3\lib\site-packages\bayes_opt\bayesian_optimization.py in next(self) 24 if self.empty: ---> 25 raise StopIteration("Queue is empty, no more objects to retrieve.") 26 obj = self._queue[0]
StopIteration: Queue is empty, no more objects to retrieve.
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)