aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/udacity/3_regularization.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/examples/udacity/3_regularization.ipynb')
-rw-r--r--tensorflow/examples/udacity/3_regularization.ipynb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/examples/udacity/3_regularization.ipynb b/tensorflow/examples/udacity/3_regularization.ipynb
index 7c587a6512..5e1d30f54f 100644
--- a/tensorflow/examples/udacity/3_regularization.ipynb
+++ b/tensorflow/examples/udacity/3_regularization.ipynb
@@ -290,11 +290,11 @@
"Another one is to use learning rate decay:\n",
"\n",
" global_step = tf.Variable(0) # count the number of steps taken.\n",
- " learning_rate = tf.train.exponential_decay(0.5, step, ...)\n",
+ " learning_rate = tf.train.exponential_decay(0.5, global_step, ...)\n",
" optimizer = tf.train.GradientDescentOptimizer(learning_rate).minimize(loss, global_step=global_step)\n",
" \n",
" ---\n"
]
}
]
-} \ No newline at end of file
+}