From a28604d023bc75b7f57ae344e4297a81b28cbf55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 30 Jul 2018 18:52:50 +0100 Subject: [PATCH] Fix probability at the end of the Reber exercise (fixes #266) --- 14_recurrent_neural_networks.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/14_recurrent_neural_networks.ipynb b/14_recurrent_neural_networks.ipynb index 74360cf..5cb5124 100644 --- a/14_recurrent_neural_networks.ipynb +++ b/14_recurrent_neural_networks.ipynb @@ -2442,7 +2442,7 @@ "print()\n", "print(\"Estimated probability that these are Reber strings:\")\n", "for index, string in enumerate(test_strings):\n", - " print(\"{}: {:.2f}%\".format(string, y_proba_val[index][0]))" + " print(\"{}: {:.2f}%\".format(string, 100 * y_proba_val[index][0]))" ] }, { @@ -2492,7 +2492,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" + "version": "3.6.5" }, "nav_menu": {}, "toc": {