-
-
Notifications
You must be signed in to change notification settings - Fork 393
-
-
Notifications
You must be signed in to change notification settings - Fork 393
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_cmdstanpy uses posterior in place of prior when both provided #1594
Comments
Thanks for the info. There were couple of typos. |
Merged
Linking to a comment on the PR, i'm still seeing this bug on a fit from the There is one more typo that needs to be resolved. |
Thanks for double checking! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm seeing some odd behavior on a branch of arviz when using
from_cmdstanpy
. Basically, if I fit a model twice using cmdstanpy & construct the az.InferenceData object using both the prior & the posterior samples, I see that the posterior draws are in both the prior & posterior groups.In other words, say I construct my arviz InferenceData object as follows:
The draws for the prior & posterior are identical.
Notably, this is not the case for the predicted quantities:
To Reproduce
I have set up a reproducible example here: https://gist.github.com/jburos/b8839b7919455d6a0019d7ce33394c2f
Expected behavior
The prior draws should be saved in the prior group.
Additional context
I had installed
arviz
from thecmdstanpy
branch, due to previous bugs. I was on commit d95e976, according to my Pipfile.lock.My system:
The text was updated successfully, but these errors were encountered: