File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 740
740
" @autograph.convert(recursive=True)\n " ,
741
741
" def train(train_ds, test_ds, hp):\n " ,
742
742
" m = mlp_model((28 * 28,))\n " ,
743
- " opt = tf.train.MomentumOptimizer (hp.learning_rate, 0.9 )\n " ,
743
+ " opt = tf.train.AdamOptimizer (hp.learning_rate)\n " ,
744
744
" \n " ,
745
745
" # We'd like to save our losses to a list. In order for AutoGraph\n " ,
746
746
" # to convert these lists into their graph equivalent,\n " ,
802
802
"source" : [
803
803
" with tf.Graph().as_default() as g:\n " ,
804
804
" hp = tf.contrib.training.HParams(\n " ,
805
- " learning_rate=0.05 ,\n " ,
805
+ " learning_rate=0.005 ,\n " ,
806
806
" max_steps=500,\n " ,
807
807
" )\n " ,
808
808
" train_ds = setup_mnist_data(True, 50)\n " ,
837
837
"outputs" : []
838
838
}
839
839
]
840
- }
840
+ }
You can’t perform that action at this time.
0 commit comments