evalml.model_understanding.graph_precision_recall_curve¶
-
evalml.model_understanding.
graph_precision_recall_curve
(y_true, y_pred_proba, title_addition=None)[source]¶ Generate and display a precision-recall plot.
- Parameters
y_true (pd.Series or np.ndarray) – True binary labels.
y_pred_proba (pd.Series or np.ndarray) – Predictions from a binary classifier, before thresholding has been applied. Note this should be the predicted probability for the “true” label.
title_addition (str or None) – If not None, append to plot title. Default None.
- Returns
plotly.Figure representing the precision-recall plot generated