Skip to content

Commit

Permalink
print format for learning rate
Browse files Browse the repository at this point in the history
  • Loading branch information
何钦尧 committed Nov 18, 2016
1 parent 565b42e commit 0f6010f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_learning_rate(epoch, config):
for i in range(config.max_epoch):
m.assign_lr(session, get_learning_rate(i, config))

print("Epoch: %d Learning rate: %.3f"
print("Epoch: %d Learning rate: %f"
% (i + 1, session.run(m.lr)))
train_perplexity = run_epoch(
session, m, train_data, m.train_op, verbose=True)
Expand Down

0 comments on commit 0f6010f

Please sign in to comment.