plot_step_sizes

jaxrens.postprocess.plotting.plot_step_sizes(monitor_or_trace, *, ax=None, per_run=False, **kwargs)[source]

Plot per-move step size vs iteration from the adaptation trace.

When the trace is batched (n_runs > 1) and per_run=True, draws one line per (move, run) combination. When per_run=False (default), plots the mean across runs with a shaded fill_between for ±1 std.

Parameters:
  • monitor_or_trace – A populated Monitor with a non-None adaptation_trace or an AdaptationLog directly (the latter is what MonitorCollection.plot_step_sizes passes when the cohort-wide log is loaded by from_multi_run_directory).

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

  • per_run (bool) – If True, draw individual run lines instead of mean±std.

  • **kwargs – Forwarded to ax.plot (not to fill_between).

Returns:

The Axes object.

Raises:

ValueError – If no adaptation trace can be resolved.

Return type:

Axes