Skip to content

Instantly share code, notes, and snippets.

@neotheicebird
Created March 5, 2017 20:40
Show Gist options
  • Save neotheicebird/ab3307b6ff203744b3e0540f29cf1c4c to your computer and use it in GitHub Desktop.
Save neotheicebird/ab3307b6ff203744b3e0540f29cf1c4c to your computer and use it in GitHub Desktop.
A staircase learning rate decay #tensorflow
# Ref: https://github.com/ericjang/genadv_tutorial/blob/master/genadv1.ipynb
learning_rate = tf.train.exponential_decay(
0.001, # Base learning rate.
batch, # Current index into the dataset.
TRAIN_ITERS // 4, # Decay step - this decays 4 times throughout training process.
0.95, # Decay rate.
staircase=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment