plot_roc_curve

plotly.ml.plot_roc_curve(y_true: np.ndarray, y_pred: np.ndarray)

Plot ROC (Receiver Operating Characteristic) curve with AUC.

Parameters

Name Type Description Default
y_true np.ndarray True binary labels (0 or 1). required
y_pred np.ndarray Predicted probabilities or decision function scores. required

Returns

Name Type Description
go.Figure Plotly figure object containing the ROC curve with diagonal reference line and AUC annotation.