bayespecon.diagnostics.SpatialMCMCReport¶
- class bayespecon.diagnostics.SpatialMCMCReport(parameters, ess_bulk, ess_tail, r_hat, mcse_mean, nominal_size, yield_pct, hpdi_drift_pct, warnings_triggered=<factory>, adequate=True, adequate_by_param=<factory>)[source]¶
Summary of MCMC sampling-efficiency checks for a spatial model.
- parameters[source]¶
Parameter names actually checked (subset of those present in the posterior, in the order they were inspected).
- hpdi_drift_pct[source]¶
Relative change in 95 % HPDI width between the last third and the full post-warmup chain, in percent. Large drift indicates the chain has not yet visited the tails enough times for the interval estimate to stabilise.
- adequate_by_param[source]¶
Per-parameter adequacy flag.
Truefor a parameter when none of the adequacy checks (ESS, yield, HPDI drift, R-hat) failed for it. Only populated for the auto-detected spatial dependence parameters;extra_paramsare not gated.
- __init__(parameters, ess_bulk, ess_tail, r_hat, mcse_mean, nominal_size, yield_pct, hpdi_drift_pct, warnings_triggered=<factory>, adequate=True, adequate_by_param=<factory>)[source]¶
Methods
__init__(parameters, ess_bulk, ess_tail, ...)to_frame()Return per-parameter diagnostics as a
pandas.DataFrame.Attributes
- to_frame()[source]¶
Return per-parameter diagnostics as a
pandas.DataFrame.One row per spatial dependence parameter (
self.parameters), with columns for each per-parameter metric plus anadequatecolumn derived fromadequate_by_param. Global scalars (nominal_size) andwarnings_triggeredare not included; access them on the dataclass directly.