nicetoolbox.evaluation.data.plots.plot_pr_curves

nicetoolbox.evaluation.data.plots.plot_pr_curves(curves: list[tuple[str, numpy.ndarray, numpy.ndarray, float, float]], base_title: str) Figure[source]

Precision-recall curve figure with one line per group.

Each group also gets a dashed horizontal baseline at its positive class prevalence, which is what a random classifier achieves at every threshold.

Parameters:
  • curves – list of (label, recall, precision, ap, prevalence) tuples, one per group row.

  • base_title – figure suptitle.