-
Notifications
You must be signed in to change notification settings - Fork 219
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
Difficulty sampling a model with truncated normal Likelihood #1722
Comments
I think this issue is relevant here: #1588 Most importantly, it seems you use the keyword argument |
Aha. Well that's disappointing, I've been running pre-optimizations and following the docs to use those optimizations as the starting points... Ok, so if I use init_params it does seem to evaluate at the initial vector, but then it complains as follows:, first printing a few reals, then suddenly switching to TrackedReals and then complaining about non-finite values, specifically, apparently it thinks the parameter vector has gone non-finite, and so has the log(p) this is even though the printed values of the parameters that I was checking are reasonable.
|
Getting similar errors, but with the tutorial from https://turing.ml/dev/tutorials/10-bayesian-differential-equations/ |
A few points on this issue:
|
Thanks for the response.
|
Sorry, this went under my radar!
Okay, that's weird. Will have a look.
Pfft.. This is a bit difficult without touching internals. But you're right, we should have a good way of debugging these things. Let me think and I'll get back to you! |
I've been having problems sampling models that use truncated normal distributions.
This minimal worked example from the discourse.julialang.org discussion shows that the initial vector passed in seems to be problematic. The first printout doesn't show the provided initial value, but rather a value with a very small standard deviation of the errors, therefore it immediately has numerical issues, showing zero probability to be at the initial point.
https://discourse.julialang.org/t/making-turing-fast-with-large-numbers-of-parameters/69072/99?u=dlakelan
When running this version, the initial
The text was updated successfully, but these errors were encountered: