jaxrens.io.adaptation_log¶
Adaptation trace logger: HDF5 writer and reader for per-move step sizes and rates.
- Schema v1 (HDF5 root):
Dataset
iterationsshape (N,) int64Dataset
step_sizesshape (N, n_runs, n_moves) float32Dataset
acceptance_ratesshape (N, n_runs, n_moves) float32Attribute
move_namesJSON-encoded list of stringsAttribute
n_runsintAttribute
n_movesint
- Schema v2 (all of v1 plus):
Attribute
adaptation_log_schema_version= 2Group
adjustment_stats/containing datasets (N, n_runs, n_moves) unless noted: -n_roundsint32 — bisection rounds executed per adjust call -convergedbool — did the loop converge? -cap_hitsint32 — rounds where proposed ss hit max_step_size -floor_hitsint32 — rounds where proposed ss hit 1e-20 floor -bracket_detectedbool — both too-high and too-low observed? -reject_reason_countsshape (N, n_runs, n_moves, 4) int32
- Schema v3 (all of v2 plus):
Attribute
adaptation_log_schema_version= 3- Dataset
n_evaluationsshape (N, n_runs, n_moves) int64 — total backend calls per iter per move (energy-only + with-gradient)
- Dataset
- Dataset
n_grad_evaluationsshape (N, n_runs, n_moves) int64 — subset of n_evaluations that used value_and_grad (i.e. galilean, hmc)
- Dataset
Classes
Parsed adaptation trace loaded from an .adaptation.h5 file. |
|
Append-only HDF5 writer for per-iteration per-move step sizes and rates. |