From d64871d70f68a182a8f707e4ca902c3dbcac2ddd Mon Sep 17 00:00:00 2001 From: behloolsabir Date: Thu, 9 Feb 2023 10:44:21 +0000 Subject: [PATCH] Update ml-roc-pr.md AUC for PR curve needs precision and recall as their input. fpr and tpr would be appropriate input for ROC curve. --- doc/python/ml-roc-pr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python/ml-roc-pr.md b/doc/python/ml-roc-pr.md index f6f9ee0c6ee..20678b8ca82 100644 --- a/doc/python/ml-roc-pr.md +++ b/doc/python/ml-roc-pr.md @@ -216,7 +216,7 @@ precision, recall, thresholds = precision_recall_curve(y, y_score) fig = px.area( x=recall, y=precision, - title=f'Precision-Recall Curve (AUC={auc(fpr, tpr):.4f})', + title=f'Precision-Recall Curve (AUC={auc(recall, precision):.4f})', labels=dict(x='Recall', y='Precision'), width=700, height=500 )