Skip to content

Commit

Permalink
chore: Fix precision-recall plots for the cases of 1 and 2 classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pierluigiferrari committed Apr 26, 2018
1 parent 3242463 commit 6ea02a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssd300_evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@
}
],
"source": [
"m = (n_classes + 1) // 2\n",
"m = max((n_classes + 1) // 2, 2)\n",
"n = 2\n",
"\n",
"fig, cells = plt.subplots(m, n, figsize=(n*8,m*8))\n",
Expand Down

0 comments on commit 6ea02a2

Please sign in to comment.