AdaptationLog¶
- class jaxrens.io.adaptation_log.AdaptationLog(iterations, step_sizes, acceptance_rates, move_names, n_runs, n_moves, adjustment_stats=None, n_evaluations=None, n_grad_evaluations=None)[source]¶
Bases:
objectParsed adaptation trace loaded from an .adaptation.h5 file.
- Variables:
iterations (ndarray) – shape (n_entries,) — NS iteration indices
step_sizes (ndarray) – shape (n_entries, n_runs, n_moves) — per-move step sizes
acceptance_rates (ndarray) – shape (n_entries, n_runs, n_moves) — per-move acc rates
move_names (list[str]) – list of move name strings, length n_moves
n_runs (int) – number of parallel runs (1 for single-run)
n_moves (int) – number of move types
adjustment_stats (dict[str, ndarray] | None) –
dict of per-adjust-call diagnostics, or None for v1/v2 files. Keys (all arrays shaped (n_entries, n_runs, n_moves) unless noted):
- "n_rounds" int32 - "converged" bool - "cap_hits" int32 - "floor_hits" int32 - "bracket_detected" bool - "reject_reason_counts" shape (n_entries, n_runs, n_moves, 4) int32
n_evaluations (ndarray | None) – shape (n_entries, n_runs, n_moves) int64 — total backend calls per iter per move. None for v1/v2 files.
n_grad_evaluations (ndarray | None) – shape (n_entries, n_runs, n_moves) int64 — value_and_grad subset. None for v1/v2 files.
- Parameters: