Skip to content

Commit

Permalink
Replace reduce_sum by reduce_mean for MSE (rather than SSE) error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Feb 2, 2017
1 parent cabe792 commit 3c6ad48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 15_autoencoders.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -2057,7 +2057,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
"version": "3.5.2+"
},
"nav_menu": {
"height": "381px",
Expand Down

0 comments on commit 3c6ad48

Please sign in to comment.