blackjax.adaptation.meta.verdict#
Post-run verdict extractors for the meta-adaptation controller.
Functions#
extract_meta_verdict()— single-chain verdict fromMetaAdaptationCoreState.extract_multi_chain_verdict()— multi-chain verdict fromMultiChainMetaAdaptationCoreState.
Functions#
|
Build a |
Build a |
Module Contents#
- extract_meta_verdict(final_state: blackjax.adaptation.meta._state.MetaAdaptationCoreState, max_grad_budget: int, num_warmup_steps: int, adaptation_info: Any = None) blackjax.adaptation.meta._state.MetaAdaptationVerdict[source]#
Build a
MetaAdaptationVerdictfrom the final core state.Call after
warmup.run()completes. Passadaptation_info(the second return ofwarmup.run()) for true gradient counts.budget_returned_stepsis ADVISORY: the scan runs its full length in v1; this field shows where a stopping host would have saved steps.
- extract_multi_chain_verdict(final_state: blackjax.adaptation.meta._state.MultiChainMetaAdaptationCoreState, max_grad_budget: int, num_warmup_steps: int, adaptation_info: Any = None, *, pooled_draws_by_window: Any = None) blackjax.adaptation.meta._state.MetaAdaptationVerdict[source]#
Build a
MetaAdaptationVerdictfrom a multi-chain final core state.Drop-in counterpart of
extract_meta_verdict()for theMultiChainMetaAdaptationCoreStateproduced bybuild_multi_chain_meta_core().- Parameters:
final_state – Final
MultiChainMetaAdaptationCoreStateafterwarmup.run().max_grad_budget – Same semantics as
extract_meta_verdict().num_warmup_steps – Same semantics as
extract_meta_verdict().adaptation_info – Same semantics as
extract_meta_verdict().pooled_draws_by_window – Optional per-window pooled draw array exposed for nested-R̂ diagnostics (shape
(n_chains, n_per_window, d)per window). Not used internally — passed through asflags["pooled_draws_by_window"]for the evaluation layer.
- Returns:
Verdict with multi-chain–specific flags:
n_chains,chain_collinearity,unimodality_gate,deferred_to_ensemble, andmode_coverage="multi_chain_certified"when all gates passed.- Return type:
MetaAdaptationVerdict