JasperSnoek / spearmint

Spearmint is a package to perform Bayesian optimization according to the algorithms outlined in the paper: Practical Bayesian Optimization of Machine Learning Algorithms. Jasper Snoek, Hugo Larochelle and Ryan P. Adams. Advances in Neural Information Processing Systems, 2012

Home Page:http://people.seas.harvard.edu/~jsnoek/software.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Slice sampler shrank to zero!" error

cuihenggang opened this issue · comments

Hello,

I get a "Slice sampler shrank to zero!" error when using GPEIOptChooser. Am I using a grid size too small or something?

Traceback (most recent call last):
File "spearmint/spearmint-lite/spearmint-lite.py", line 219, in
main()
File "spearmint/spearmint-lite/spearmint-lite.py", line 84, in main
main_controller(options, args)
File "spearmint/spearmint-lite/spearmint-lite.py", line 190, in main_controller
np.nonzero(grid_idx == 0)[0])
File "/usr/local/lib/python2.7/dist-packages/chooser/GPEIOptChooser.py", line 257, in next
self.sample_hypers(comp, vals)
File "/usr/local/lib/python2.7/dist-packages/chooser/GPEIOptChooser.py", line 627, in sample_hypers
self._sample_ls(comp, vals)
File "/usr/local/lib/python2.7/dist-packages/chooser/GPEIOptChooser.py", line 643, in _sample_ls
self.ls = util.slice_sample(self.ls, logprob, compwise=True)
File "spearmint/spearmint/spearmint/util.py", line 87, in slice_sample
cur_x = direction_slice(direction, cur_x)
File "spearmint/spearmint/spearmint/util.py", line 69, in direction_slice
raise Exception("Slice sampler shrank to zero!")
Exception: Slice sampler shrank to zero!

Thank you very much!

Cui