-
Notifications
You must be signed in to change notification settings - Fork 60
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
SMC Sampling fails with multivariate distribution #312
Comments
Hi,
|
Thanks for the tip. I will definitely put this into practice. If this is functionality you think would help out in ELFI, I would be willing to take a shot at a PR extending the SMC functionality. Please advise and thanks! |
Summary:
When a sequence of thresholds having length > 1 is passed to smc, the inference fails with
ValueError: In executing node '_theta_logpdf': Vector 'x' must have either the same number of entries as, or one entry fewer than, parameter vector 'a', but alpha.shape = (10,) and x.shape = (100000,)..
Description:
Using a simulator of a multinomial model, having a dirichlet prior, attempting to run smc for a sequence of thresholds produces an error.
Reproducible Steps:
Current Output:
When the threshold schedule is [100], everything runs. When it is changed to [100,99] it fails with the error:
Expected Output:
I expect the output to have samples similar to running with threshold [99].
ELFI Version:
0.7.4
Python Version:
3.7.4
Operating System:
MAC OSX
The text was updated successfully, but these errors were encountered: