AccRatesCallback¶
- class jaxrens.cli.monitor.AccRatesCallback(logger_obj, interval=1)[source]¶
Bases:
objectWrites per-iteration chain-phase per-move acceptance counts to HDF5.
Independent of
full_auto: the chain countersn_accepted_per_moveandn_proposed_per_moveare populated byns_stepon every iteration, so this callback fires regardless of whether bisection adaptation is active.AdaptationCallbackcomplements this by capturing the sparse step-size event series; this callback captures the dense per-iter chain-rate series.Stores raw counts (not derived rates) so downstream code can re-aggregate over arbitrary windows.
- Parameters:
logger_obj (Any) – A ready-to-use
AccRatesLoggerinstance.interval (int) – Fire every
intervaliterations. Default1(every iter); set higher to reduce I/O on long runs.