jaxrens.io.max_neighbors_log¶
Per-iteration neighbor-bucket diagnostic log: HDF5 writer and reader.
- Schema v1 (HDF5 root):
Dataset
iterationsshape (N,) int64Dataset
max_neighbor_countshape (N, n_runs, n_walkers) int32Dataset
bucket_sizeshape (N, n_runs) int32Dataset
overflowshape (N, n_runs) boolAttribute
n_runsintAttribute
n_walkersintAttribute
max_neighbors_log_schema_version= 1
The full per-walker distribution is stored so postprocessing can plot the spread (min / max / quantiles, or a 2-D heatmap of count-vs-iteration). Bucket-size and overflow are kept for diagnostic clarity — together they let a reader see exactly how the outer loop’s bucket-ladder management chased the observed peak, including the brief overflow blips that triggered each upgrade.
A typical NS run with n_live=500 and n_runs=1 over 10 000 iterations
produces ~20 MB int32 — well within “always cheap” territory. The file is
opt-in via OutputConfig.save_max_neighbors so default runs see no I/O.
Classes
Parsed neighbor-bucket trace loaded from a |
|
Append-only HDF5 writer for per-iteration neighbor-bucket diagnostics. |