Compute HMC diagnostic severity from sampler metrics.
Source:R/backends-cmdstanr.R
bg_hmc_severity.RdThresholds follow Vehtari et al. (2021) for R-hat/ESS. Defaults are
overridable via node params (rhat_error, rhat_warn, ess_warn,
ebfmi_warn, divergence_rate_error).
Usage
bg_hmc_severity(metrics, thresholds = list())Arguments
- metrics
Named list with: divergences, max_treedepth_hits, max_rhat, min_bulk_ess, min_tail_ess, e_bfmi, num_transitions.
num_transitionsis the total post-warmup transitions across all chains (the denominator for the per-transition divergence rate), since divergences are summed across chains. May optionally carryn_chainsto scale the default ESS warning threshold.- thresholds
Optional list overriding default thresholds.