roc
ROC Plotting API
This module provides utility functions to plot ROC curves.
Functions:
-
roc_auc_plot
–Generate ROC plot via matplotlib/seaborn
Functions
roc_auc_plot
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:
-
y_true
(NDArray
) –True y labels
-
y_prob
(NDArray
) –Predicted y labels
-
labels
(list[str]
) –Label names
-
save_path
(str | None
, default:None
) –Path to save plot. Defaults to None.
Returns:
-
tuple[Figure, Axes] | None
–tuple[plt.Figure, plt.Axes] | None: Figure and axes