-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Prior predictive sampling does not work with Dirichlet Process example #3789
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
Comments
This trivial
It seems like there's some problem with the need to infer the shape of the component normals in this case. But shouldn't the shape just be the shape of the parent mixture variable? |
Could you try explicitly providing |
|
About point 3, yes, the |
Found the bug in |
This was possibly fixed by I'm going to mark this as "needs info" instead of closing though. We should take the example from above and check if it works in |
I confirmed this works in V4. The only issue is that the weights sometimes overflow above 1 leading to an error in predictive sampling of the interval Mixture categorical variable. Setting |
Description of the problem
I copied the
dp_mix.ipynb
notebook (Austin Rochford's Dirichlet Process example) to a working directory. Then I started it up, and built his model as follows:When I try to use
pm.sample_prior_predictive()
on this model, I get the following error:Please provide the full traceback.
I am able to successfully sample all the other variables in the model, including the parents of the
obs
random variable, but if I try to sampleobs
, I get that error.Versions and main components
pip -e
from my git repoThe text was updated successfully, but these errors were encountered: