AccRatesLog

class jaxrens.io.acc_rates_log.AccRatesLog(iterations, n_accepted, n_proposed, move_names, n_runs, n_moves)[source]

Bases: object

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

Variables:
  • iterations (ndarray) – shape (n_entries,) int64 — NS iteration indices

  • n_accepted (ndarray) – shape (n_entries, n_runs, n_moves) int64

  • n_proposed (ndarray) – shape (n_entries, n_runs, n_moves) int64

  • 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

Parameters:
property acceptance_rates: ndarray

per-iter per-move chain acceptance rate.

Shape (n_entries, n_runs, n_moves). Defined as n_accepted / max(n_proposed, 1); zero where no moves were proposed (shouldn’t happen on real runs, but the guard keeps plotting code from dividing by zero).

Type:

Convenience