run_mcmc#

jeanspy.sampler.Sampler.run_mcmc

Class and construction: Sampler.

Sampler.run_mcmc(iterations, loops, reset=False, p0_generator=None, enable_convergence_check=True, **kwargs)[source]#

run the sampler. p0 is generated by p0_generator. save and monitor the chain and lnprob using backends. blobs_dtype is obtained by model.

iterations: number of iterations for each loop loops: number of loops reset: discard the stored chain and initialize a new run p0_generator: override the constructor’s initial-state generator

Parameters:

p0_generator (Callable | None)