save_checkpoint#

jeanspy.sampler_numpyro.NumPyroSampler.save_checkpoint

Class and construction: NumPyroSampler.

NumPyroSampler.save_checkpoint()[source]#

Save trusted NumPyro transition state.

Notes

Inputs and units. No arguments; requires a last_state and bound analysis identity.

Returns and shape. Path of the written checkpoint.

Validity. A completed MCMC last_state and an unchanged bound analysis are required. The file contains Python pickle data.

Errors. RuntimeError before last_state exists; ValueError for unverified/changed analysis. Filesystem errors propagate.

Differentiation. Host-side sampling/storage control; this method has no physical-parameter derivative.

Return type:

pathlib.Path