Skip to content

pymc/single-chain-or-unchecked-convergence

Pack Severity Fix Versions
PyMC warning none, edit by hand All versions

Running pm.sample or pm.sample_smc with chains=1 (or chains=0) prevents computing split-$\hat{R}$ across independent chains, and compute_convergence_checks=False silently suppresses divergence, treedepth, and low-ESS warnings.

idata = pm.sample(draws=1000, chains=1, random_seed=0)
idata = pm.sample(draws=1000, chains=4, random_seed=0)
idata = pm.sample(draws=1000, compute_convergence_checks=False, random_seed=0)
idata = pm.sample(draws=1000, compute_convergence_checks=True, random_seed=0)

Calls to pm.sample or pm.sample_smc passing chains=1, chains=0, or compute_convergence_checks=False.

Run at least 2 independent chains (4 is standard) and keep compute_convergence_checks=True.

chains=$N cannot compute split R-hat convergence diagnostics across independent chains. Use at least 2 chains (4 is standard).

See all rules in the PyMC pack.