From ba100cde2a82030c7b5e570d0fcce0e5ec6b33ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Thu, 2 Feb 2017 18:51:54 +0100 Subject: [PATCH] Replace reduce_sum by reduce_mean for MSE (rather than SSE) error. --- 15_autoencoders.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/15_autoencoders.ipynb b/15_autoencoders.ipynb index 6114ce1..0140621 100644 --- a/15_autoencoders.ipynb +++ b/15_autoencoders.ipynb @@ -208,7 +208,7 @@ "hidden = fully_connected(X, n_hidden, activation_fn=None)\n", "outputs = fully_connected(hidden, n_outputs, activation_fn=None)\n", "\n", - "mse = tf.reduce_sum(tf.square(outputs - X))\n", + "mse = tf.reduce_mean(tf.square(outputs - X))\n", "\n", "optimizer = tf.train.AdamOptimizer(learning_rate)\n", "training_op = optimizer.minimize(mse)\n", @@ -1568,7 +1568,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.5.2+" }, "nav_menu": { "height": "381px",