run#
jeanspy.sampler_numpyro.NumPyroSampler.run
Class and construction: NumPyroSampler.
- NumPyroSampler.run(rng_key, *args, resume='auto', save_checkpoint=True, save_samples=True, wait_for_write=False, arviz_kwargs=None, **kwargs)[source]#
Run one chunk and optionally persist it.
Notes
Inputs and units.
rng_keyplus model data arguments; resume is auto/True/False.save_checkpoint/save_samples/wait_for_writecontrol persistence;arviz_kwargsare conversion options.Returns and shape. SamplerRunResult; wait for flush/close before relying on asynchronous files.
Validity. Use an unchanged model, prior, observations and numerical configuration when resuming. Identity is checked before sampling.
Errors. ValueError for identity mismatch or invalid resume mode; FileNotFoundError for required missing state. Model, NumPyro and storage exceptions propagate.
Differentiation. Host-side sampling/storage control; this method has no physical-parameter derivative.