EnergyCheckCallback

class jaxrens.cli.monitor.EnergyCheckCallback[source]

Bases: object

Warns if any replica’s Emax fails to decrease between iterations.

Compares info["emax"] element-wise against the previous iteration; a global max-reduction would let one descending replica mask another replica’s non-monotonic contour (the failure mode that previously hid https://github.com/…/pressure-rens-writeback-bug). Works for any batched shape — scalars (SingleRun), 1-D (R,) (VmapRuns), 2-D (G, P) (PmapVmapRuns).