-
Notifications
You must be signed in to change notification settings - Fork 8
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
Save posteriors as a FITS/HDF file #25
Comments
Look into |
Also found this: pymc-devs/pymc#2189 QS for @dfm, are we ok with
If we are ok with saving/loading the posteriors from a
makes it quite easy :) |
I think the following would be a better procedure: import pymc3 as pm
import arviz as az
with pm.Model() as model:
x = pm.Normal("x")
trace = pm.sample()
data = az.from_pymc3(trace)
data.to_netcdf("chain.netcdf") Then we could load it using: import arviz as az
new_data = az.from_netcdf("chain.netcdf") This has the benefit that it stores all the sampling metadata as well as the samples themselves. We could do that manually, but this is probably better! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: