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) andper_run=True, draws one line per (move, run) combination. Whenper_run=False(default), plots the mean across runs with a shadedfill_betweenfor ±1 std.- Parameters:
monitor_or_trace – A populated Monitor with a non-None
adaptation_traceor anAdaptationLogdirectly.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 tofill_between).
- Returns:
The Axes object.
- Raises:
ValueError – If no adaptation trace can be resolved.
- Return type:
Axes