jaxrens.io.re_stats_log

Per-fire inter-RE swap log: HDF5 writer and reader.

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

  • Dataset n_accepted_per_pair shape (N, n_pairs) int32

  • Dataset n_attempted_per_pair shape (N, n_pairs) int32

  • Attribute n_pairs int (= n_runs - 1)

  • Attribute flavor str (‘pressure’ | ‘xrens’ | ‘semi_grand’)

  • Attribute re_stats_log_schema_version = 1

This file complements <prefix>.acc_rates.h5 (chain-phase per-move acceptance) and <prefix>.adaptation.h5 (step-size adapt events). One row per swap fire — natural cadence is dictated by upstream inter_re.re_interval, so the iteration index in the file is the authoritative record of when the manager actually did work.

Classes

RELog

Parsed per-fire RE swap trace loaded from an .re_stats.h5 file.

RELogger

Append-only HDF5 writer for per-fire inter-RE swap counts.