jaxrens.io.acc_rates_log

Per-iteration chain-phase acceptance log: HDF5 writer and reader.

Schema v1 (HDF5 root):
  • Dataset iterations shape (N,) int64

  • Dataset n_accepted shape (N, n_runs, n_moves) int64

  • Dataset n_proposed shape (N, n_runs, n_moves) int64

  • Attribute move_names JSON-encoded list of strings

  • Attribute n_runs int

  • Attribute n_moves int

  • Attribute acc_rates_log_schema_version = 1

This file complements <prefix>.adaptation.h5: while the adaptation log captures step-size events (initial baseline + each bisection), this log captures the chain-phase per-move acceptance signal every iteration (subject to the user-configured interval). Raw counts are stored so downstream code can re-aggregate over arbitrary windows; the per-iter rate is n_accepted / max(n_proposed, 1).

Classes

AccRatesLog

Parsed chain-phase acc-rate trace loaded from an .acc_rates.h5 file.

AccRatesLogger

Append-only HDF5 writer for per-iteration chain acc counts.