incerto.llm.plot_risk_coverage_llm

incerto.llm.plot_risk_coverage_llm#

incerto.llm.plot_risk_coverage_llm(confidences, correctness, ax=None, title='Risk-Coverage Curve')[source]#

Plot risk-coverage curve for selective prediction.

Parameters:
  • confidences (ndarray | Tensor) – Confidence scores

  • correctness (ndarray | Tensor) – Binary correctness

  • ax – Matplotlib axes

  • title (str) – Plot title