-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
predictive sampling fails with multivariate posterior #5002
Comments
I have attempted to solve this, but I fail because the code gets too complex for my simple mind to grasp; Following the traceback, I see that in distributions/multivariate.py/MvNormal.random(...), there is a shape broadcast However, this is "cheating", because I also followed the drawing procedure and attempted to find out which model component is causing the trouble. So should it not rather end up in a category like Or, from a conceptual standpoint, shouldn't Covariance/Cholesky stay unchanged for posterior predictive sampling? |
This seems to develop into a little wasp nest for me.
If I understood it correctly (cf. https://stackoverflow.com/a/41602739 ), then However, when using a But is this any relevant use case? I found that, on my real data, the results for tl;dr: once at it, it would be great to make sure that anything which works with |
Which PyMC3 version is this? It could very well be fixed on main/v4 where we reworked all of this. |
Dear Thomas, I'm currently on the latest installed from I'll try to find and install the cutting edge version. |
Okay, indeed the update worked! Kudos for the rework. Here's what I did:
... and I can draw the samples! Thanks a lot, I'll keep using the dev version. Note that some of the docs still writes of "theano-pymc", which was confusing: that is "aesara" now? Cheers! |
Sorry for a follow up: LKJCholeskyCov seems to be dysfunctional in the latest version: I appreciate further help! |
Thanks to a hint in discourse, I now know that there is a PR to solve this: |
description
Thanks in advance for looking into this!
additional information
cf. https://discourse.pymc.io/t/prediction-setting-data-fails-with-multivariate-observed/8011
I suspect some data-shape-dependent theano object is initialized with the LKJ prior.
This is unexpected; I don't see how it depends on the data (but I'm uninformed).
A quick solution would be to convert that internal to a shared "pm.Data" which can be accessed ex post.
example
(note the "
KILLSWITCH
")traceback:
Complete error traceback
Versions and main components
The text was updated successfully, but these errors were encountered: