From 4d42536335c39eb75fbf58a4211084258d6042d7 Mon Sep 17 00:00:00 2001 From: Aurelien Geron Date: Mon, 19 Jun 2017 22:28:45 +0200 Subject: [PATCH] Fix plot_confusion_matrix() in ch 03 (fixes #42) --- 03_classification.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03_classification.ipynb b/03_classification.ipynb index 997b75d..7c3b351 100644 --- a/03_classification.ipynb +++ b/03_classification.ipynb @@ -1627,7 +1627,7 @@ " \"\"\"If you prefer color and a colorbar\"\"\"\n", " fig = plt.figure(figsize=(8,8))\n", " ax = fig.add_subplot(111)\n", - " cax = ax.matshow(conf_mx)\n", + " cax = ax.matshow(matrix)\n", " fig.colorbar(cax)" ] },