Skip to content

Commit f29ae72

Browse files
committed
Added writing epsilon_greedy and learning_rate decay to tensorboard
1 parent bdc4147 commit f29ae72

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

TF-agents/tf_agents_C51.py

+11
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,17 @@ def train_step():
326326
data=steps_per_sec,
327327
step=global_step)
328328

329+
# Uncomment below to publish the changes in epsilon_greedy
330+
# and learning rate to the tensorboard log. Useful to make sure
331+
# any decay is doing as you intend
332+
tf.compat.v2.summary.scalar(name='epsilon_greedy',
333+
data=epsilon_greedy(),
334+
step=global_step)
335+
336+
tf.compat.v2.summary.scalar(name='learning_rate',
337+
data=learning_rate(),
338+
step=global_step)
339+
329340
timed_at_step = global_step.numpy()
330341
time_acc = 0
331342

0 commit comments

Comments
 (0)