-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Metropolis broadcasting issue #1083
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
Closing for inactivity. |
This was referenced Feb 27, 2021
michaelosthege
pushed a commit
that referenced
this issue
Mar 10, 2021
It seems like broadcasting information gets lost when applying `pm.make_shared_replacements`, leading to problems with the metropolis sampler. Potentially related issues below: - #1083 - #1304 - #1983 This fix was previously suggested in the following issue: - #3337 It could be that further adaptations are necessary as indicated in the issue. Strangely, this does not seem to lead to problems when using NUTS.
michaelosthege
pushed a commit
to michaelosthege/pymc
that referenced
this issue
Mar 10, 2021
It seems like broadcasting information gets lost when applying `pm.make_shared_replacements`, leading to problems with the metropolis sampler. Potentially related issues below: - pymc-devs#1083 - pymc-devs#1304 - pymc-devs#1983 This fix was previously suggested in the following issue: - pymc-devs#3337 It could be that further adaptations are necessary as indicated in the issue. Strangely, this does not seem to lead to problems when using NUTS.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to use Metropolis sampling method for a simple hierarchical model, following is the code:
I guess it's because theano requires indicating broadcastable dimensions in the graph before compilation, while numpy can do broadcasting at run time.
to
or
Then there's no error anymore, the sampling goes well. The question is that when the deterministic variable involves two different stochastic variable, there's broadcasting issue, but if only with one, there's no issues.
The text was updated successfully, but these errors were encountered: