-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
nan exception with variational inference #1559
Comments
Thanks for filing the issue. This is a known bug with the way We should have this fixed (and a version in RStan) by the
|
Specifically it is #1544 and there is a pull request (that needs some work) for it. So, I think we can close this issue. |
Yup, hopefully when I have time later this week, I can repush some changes to the current pull request as it isn't working at the moment. |
For the following model
I'm trying to estimate group level parameters from the following data (I generated with python and saved data file test.R with pystan):
When I compile and sample with advi using
I get the exception:
This is a small dataset, and the error can be avoided if I run with most other random seeds, but I originally ran into this every time with a larger data set, that presumably has some groups only represented once in the
grp_index
array. I could get rid of those groups in the dataset, but wondered if this is a bug with the variational algorithm.The text was updated successfully, but these errors were encountered: