incerto.conformal.plot_coverage_vs_alpha

incerto.conformal.plot_coverage_vs_alpha#

incerto.conformal.plot_coverage_vs_alpha(alphas, coverages, show=True, ax=None)[source]#

Plot empirical coverage versus the desired miscoverage rate alpha.

Parameters:
  • alphas (Sequence[float]) – Desired miscoverage rates.

  • coverages (Sequence[float]) – Empirical coverages observed for each alpha.

  • show (bool) – If True, call plt.show().

  • ax (Optional[Axes]) – Optional matplotlib Axes to draw into. If None, a new figure is created.

Return type:

tuple[Figure, Axes]

Returns:

(fig, ax) tuple.