plot_acceptance_rates

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

Plot per-move acceptance rate 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.

  • 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