jaxrens.cli.analyze

jaxrens analyze <checkpoint> — a thermodynamic observable vs temperature.

Unlike jaxrens plot (one artefact file -> one plot), a thermodynamic observable needs both a run’s checkpoint (n_live, live energies, log evidence) and its .energies log (dead-point energies) — exactly what Monitor.from_directory assembles from a directory + prefix. So this dispatches on a checkpoint file, recovers <prefix> from its name, and loads the sibling files from the same directory:

<prefix>.checkpoint.h5 / <prefix>.final.checkpoint.h5, plus --observable
    heat_capacity        Cv(T)          (default)
    partition_function   log Z(T)
    free_energy          F(T)

The primary output is data, not a picture — --format csv (default, fixed- width aligned columns) or --format json (nests naturally for an observable that is not one scalar per T) — ready for a notebook or another run’s comparison without a detour through a PNG. Pass --plot to additionally render one, via the same plot_* functions jaxrens plot uses elsewhere.

Functions

analyze_file

Load a run's checkpoint and write one thermodynamic observable vs T.