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

"Slice sampler shrank to zero!" error #59

Open
cuihenggang opened this issue Jul 27, 2016 · 0 comments
Open

"Slice sampler shrank to zero!" error #59

cuihenggang opened this issue Jul 27, 2016 · 0 comments

Comments

@cuihenggang
Copy link

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

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

1 participant