From 56be8647f9278d69ace4f8eef5b3f7316e6cb9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Fri, 3 Aug 2018 16:15:18 +0100 Subject: [PATCH] Get output of hidden3, not hidden4 (fixes #273). --- 11_deep_learning.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/11_deep_learning.ipynb b/11_deep_learning.ipynb index 46abb3b..8f83e95 100644 --- a/11_deep_learning.ipynb +++ b/11_deep_learning.ipynb @@ -1279,7 +1279,7 @@ "X = tf.get_default_graph().get_tensor_by_name(\"X:0\")\n", "y = tf.get_default_graph().get_tensor_by_name(\"y:0\")\n", "\n", - "hidden3 = tf.get_default_graph().get_tensor_by_name(\"dnn/hidden4/Relu:0\")\n", + "hidden3 = tf.get_default_graph().get_tensor_by_name(\"dnn/hidden3/Relu:0\")\n", "\n", "new_hidden4 = tf.layers.dense(hidden3, n_hidden4, activation=tf.nn.relu, name=\"new_hidden4\")\n", "new_logits = tf.layers.dense(new_hidden4, n_outputs, name=\"new_outputs\")\n", @@ -4654,7 +4654,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" + "version": "3.6.5" }, "nav_menu": { "height": "360px",