pymc.backends.zarr.ZarrTrace.to_inferencedata#
- ZarrTrace.to_inferencedata(save_warmup=False)[source]#
Convert
ZarrTrace
toInferenceData
.This converts all the groups in the
ZarrTrace.root
hierarchy into anInferenceData
object. The only exception is that_sampling_state
is excluded.- Parameters:
- save_warmupbool
If
True
, all of the warmup groups are stored in the inference data object.
Notes
xarray
and in turnarviz
require 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 returnedInferenceData
object will operate on a different storage unit than the callingZarrTrace
, so future changes to theZarrTrace
won’t be automatically reflected in the returnedInferenceData
object.