plot_energy_trace

jaxrens.postprocess.plotting.plot_energy_trace(monitor, *, ax=None, **kwargs)[source]

Plot the live-walker culled energy vs iteration.

Uses monitor.energy_trace and monitor.iteration_trace. Raises ValueError if the monitor has no energy trace (i.e., the .energies file was not loaded).

Parameters:
  • monitor (Monitor) – Populated Monitor.

  • ax (Axes | None) – Existing axes to plot into. Created if None.

  • **kwargs – Forwarded to ax.plot.

Returns:

The Axes object.

Return type:

Axes