Skip to content

Commit 7aabefb

Browse files
authored
Correct plot labels of AUPRC
The AUPRC plot takes precision for x-axis and recall for y-axis.
1 parent 3a6a7a3 commit 7aabefb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/tutorials/structured_data/imbalanced_data.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,8 +986,8 @@
986986
" precision, recall, _ = sklearn.metrics.precision_recall_curve(labels, predictions)\r\n",
987987
"\r\n",
988988
" plt.plot(precision, recall, label=name, linewidth=2, **kwargs)\r\n",
989-
" plt.xlabel('Recall')\r\n",
990-
" plt.ylabel('Precision')\r\n",
989+
" plt.xlabel('Precision')\r\n",
990+
" plt.ylabel('Recall')\r\n",
991991
" plt.grid(True)\r\n",
992992
" ax = plt.gca()\r\n",
993993
" ax.set_aspect('equal')"

0 commit comments

Comments
 (0)