AccRatesCallback

class jaxrens.cli.monitor.AccRatesCallback(logger_obj, interval=1)[source]

Bases: object

Writes per-iteration chain-phase per-move acceptance counts to HDF5.

Independent of full_auto: the chain counters n_accepted_per_move and n_proposed_per_move are populated by ns_step on every iteration, so this callback fires regardless of whether bisection adaptation is active. AdaptationCallback complements 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 AccRatesLogger instance.

  • interval (int) – Fire every interval iterations. Default 1 (every iter); set higher to reduce I/O on long runs.