-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
from_pymc3(prior=...) fails when model uses coords #1424
Comments
The issue here is with the This array has only the |
Yes, shape with pymc3.Model() as pmodel:
a = pymc3.Normal("a")
b = pymc3.Normal("b", shape=(1,))
c = pymc3.Normal("c", shape=(2,))
print({ p.name : p.random(size=123).shape for p in [a,b,c]})
# {'a': (123,), 'b': (123,), 'c': (123, 2)} Not sure how we should deal with this.. Also this issue may need to move over to pymc3.. |
This issue is caused by pymc-devs/pymc#4206 |
I think this has been solved now, should we add a test to check it does not come up again before closing though? |
I don't think we'll need a test, because the fixed shape handling is tested thoroughly in PyMC3. |
Describe the bug
Making an InferenceData from a prior predictive dictionary in the context of a model fails when the model uses
coords
.To Reproduce
The following code works fine:
Output:
And this one has the same dimensions, just with coords, but fails:
Output:
Expected behavior
In both cases, an InferenceData object containing the prior predictive samples should be created.
Additional context
The text was updated successfully, but these errors were encountered: