pymc.backends.zarr.ZarrTrace.to_inferencedata#
- ZarrTrace.to_inferencedata(save_warmup=False)[source]#
Convert
ZarrTracetoInferenceData.This converts all the groups in the
ZarrTrace.roothierarchy into anInferenceDataobject. The only exception is that_sampling_stateis excluded.- Parameters:
- save_warmupbool
If
True, all of the warmup groups are stored in the inference data object.
Notes
xarrayand in turnarvizrequire the zarr groups to have consolidated metadata. To achieve this, a new consolidated store is constructed by callingzarr.consolidate_metadata()on the root’s store. This means that the returnedInferenceDataobject will operate on a different storage unit than the callingZarrTrace, so future changes to theZarrTracewon’t be automatically reflected in the returnedInferenceDataobject.