-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add ArviZ integration #542
Comments
Given that ArviZ already has a converter from Pyro, this would probably be really easy to do: https://arviz-devs.github.io/arviz/api/generated/arviz.from_pyro.html |
I agree, it would be great to support ArviZ |
Okay! I'm happy to open a PR. |
Great, thank you! |
|
Hope this helps! |
perfect!
I agree, the current API should be kept. The latter option is nice (storing the
Hm, that is unfortunate. I need to look more carefully at pyro.
yes, very helpful! Thanks! I'm learning both sbi and pyro at the same time, so there will likely be more questions. |
|
Perhaps this could be worked around with a helper function for construction a A fringe benefit of this is that in principle one could use the fitted posterior as a prior in a Pyro model for Bayesian updating. |
Yes I think this could have worked. We added the |
Alright, in the interest of picking the low-hanging fruit first, my proposal is to:
That should be sufficient for allowing users to use ArviZ to diagnose model problems in the unconstrained space. Then later we could potentially do something like #542 (comment) so that the users get the sampler in the constrained space. |
What are your thoughts on this particular case, where there's not just one sampler but a vector of samplers (one per chain)? I see several ways of handling this:
To me (3) seems cleanest. What do you think? |
Just to make sure that I understand proposition 3 correctly: you would move this loop into the new class |
Alternatively, one could have a |
Sorryyyy I meant |
As suggested by @Meteore, the ArviZ package has a large number of MCMC diagnostics, statistics, and visualizations. See for example the gallery. It provides diagnostics/plots to PyMC3 but is PPL-agnostic.
It would be good to include here a converter to an
arviz.InferenceData
, which would automatically allow users to apply these diagnostics.The text was updated successfully, but these errors were encountered: