Skip to content
heliaEDGE
Reference
HELIA

roc

This module provides utility functions to plot ROC curves.

Functions

Name Description
roc_auc_plot Generate ROC plot via matplotlib/seaborn

Machine-readable model

  • roc_auc_plotfunctionGenerate ROC plot via matplotlib/seaborn
function

Generate ROC plot via matplotlib/seaborn

helia_edge/plotting/roc.py:23

roc_auc_plot(
y_true: npt.NDArray,
y_prob: npt.NDArray,
labels: list[str],
save_path: os.PathLike | None = None,
**kwargs={},
) -> tuple[plt.Figure, plt.Axes] | None

Generate ROC plot via matplotlib/seaborn

Parameters of roc_auc_plot
NameTypeDefaultDescription
y_truenpt.NDArrayRequiredTrue y labels
y_probnpt.NDArrayRequiredPredicted y labels
labelslist[str]RequiredLabel names
save_pathstr | NoneNonePath to save plot. Defaults to None.
Returns of roc_auc_plot
TypeDescription
tuple[plt.Figure, plt.Axes] | Nonetuple[plt.Figure, plt.Axes] | None: Figure and axes