jaxrens.io.adaptation_log

Adaptation trace logger: HDF5 writer and reader for per-move step sizes and rates.

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

  • Dataset step_sizes shape (N, n_runs, n_moves) float32

  • Dataset acceptance_rates shape (N, n_runs, n_moves) float32

  • Attribute move_names JSON-encoded list of strings

  • Attribute n_runs int

  • Attribute n_moves int

Schema v2 (all of v1 plus):
  • Attribute adaptation_log_schema_version = 2

  • Group adjustment_stats/ containing datasets (N, n_runs, n_moves) unless noted: - n_rounds int32 — bisection rounds executed per adjust call - converged bool — did the loop converge? - cap_hits int32 — rounds where proposed ss hit max_step_size - floor_hits int32 — rounds where proposed ss hit 1e-20 floor - bracket_detected bool — both too-high and too-low observed? - reject_reason_counts shape (N, n_runs, n_moves, 4) int32

Schema v3 (all of v2 plus):
  • Attribute adaptation_log_schema_version = 3

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

    — total backend calls per iter per move (energy-only + with-gradient)

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

    — subset of n_evaluations that used value_and_grad (i.e. galilean, hmc)

Classes

AdaptationLog

Parsed adaptation trace loaded from an .adaptation.h5 file.

AdaptationLogger

Append-only HDF5 writer for per-iteration per-move step sizes and rates.