How to save the sample file #542
Hellobamboobamboo
started this conversation in
General
Replies: 1 comment
-
Use the traces object from your .sample() call. For example, if you have run traces = model.sample(), then traces is your InferenceData object. Run traces.to_netcdf("the_file_name_you_want_to_save_to.nc"), then you'll have a file saved to the same directory |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It showed that the type is arviz.InferenceData object. I tried:
import arviz as az
Assuming 'inference_data' is your arviz.InferenceData object
inference_data.to_netcdf("inference_data.nc")
print("InferenceData saved as 'inference_data.nc'")
to save the file, but it didnt work. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions