Reinforcement-learning-with-tensorflow icon indicating copy to clipboard operation
Reinforcement-learning-with-tensorflow copied to clipboard

如何画奖励与训练回合的关系图?

Open Curry30h opened this issue 6 years ago • 1 comments

Curry30h avatar May 05 '19 06:05 Curry30h

You need to use Tensorboard which comes with Tensorflow installed.

tf.reset_default_graph()
sess = tf.Session()

# Your Tensorflow graph goes here.
# ...

sess.run(tf.global_variables_initializer())

# Declare tf.summary.FileWriter where log is your output directory for Tensorboard & add the graph to the writer.
writer = tf.summary.FileWriter('log', sess.graph)

# Run your training loop
# sess.run(...)

writer.close()

Run this command in terminal to open tensorboard:

tensorboard --logdir log

Navigate to http://127.0.0.1:6006 in your browser to access Tensorflow. Your graph is in the graph tab.

ChuaCheowHuan avatar Jul 03 '19 17:07 ChuaCheowHuan