pymc.backends.zarr.ZarrChain.record#

ZarrChain.record(draw, stats)[source]#

Record the step method’s returned draw and stats.

The draws and stats are first stored in an internal buffer. Once the buffer is filled, the samples and stats are written (flushed) onto the desired zarr store.

Returns:
flushedbool | None

Returns True only if the data was written onto the desired zarr store. Any other time that the recorded draw and stats are written into the internal buffer, None is returned.

See also

flush()