From c9252677bda873190fc35845cf38bdc5791af6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= 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 01207f4..444f52f 100644 --- a/03_classification.ipynb +++ b/03_classification.ipynb @@ -1053,7 +1053,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)" ] },