incerto.sp.plot_accuracy_coverage

incerto.sp.plot_accuracy_coverage#

incerto.sp.plot_accuracy_coverage(logits, y, confidence=None, *, ax=None, show_bounds=True)[source]#

Plot the accuracy-coverage curve for selective prediction.

Parameters:
  • logits (Tensor) – Model logits.

  • y (Tensor) – Ground truth labels.

  • confidence (Optional[Tensor]) – Confidence scores (if None, uses max softmax).

  • ax (Optional[Axes]) – Matplotlib axes object.

  • show_bounds (bool) – Whether to show random and ideal (oracle) bounds.

Return type:

Axes

Returns:

Matplotlib axes object.