evalml.pipelines.graph_precision_recall_curve

evalml.pipelines.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.array) – true binary labels.

  • y_pred_proba (pd.Series or np.array) – 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