-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unexpected AssertionError #181
Comments
This is often a symptom that the posterior is improper (due to an intentionally improper prior, or even I had it when forgetting to specify a prior on a variable). In such case the slice sampler might venture off very far where numerical instability could end up giving a NaN even when the target is well behaved. If not, feel free to send instructions to replicate the issue. |
Thank you so much Alexandre for your suggestions! I will double and check if I can solve this... |
Hi @astrozot -- I have a PR (#183) with some improvements on the SliceSampler code, and in particular with a more detailed error whenever invalid log densities are encountered. If you want to test it, you can do this by adding this branch of Pigeons via using Pkg
Pkg.add(name="Pigeons", rev="ss-handle-inf-z") That should hopefully raise the exact point in the state space that is found to have invalid density. |
Just merged the PR so you can simply install the latest dev version, e.g. via using Pkg
Pkg.add(name="Pigeons", rev="main") |
Hi @miguelbiron, thank you so much for your message! I will install the latest dev version and check if I can get a clearer clue of my issue. |
I apologize, this is more a help request than a bug report or an enhancement suggestion.
During a Bayesian inference of parameters of a fairly complex log-posterior I encountered a problem that I do not really understand:
Is there something I should check to avoid this error? From my tests, my logposterior seems to be finite and I do not see where the problem could be. Thank you for any help you can provide!
The text was updated successfully, but these errors were encountered: