Tensor board - overlay of 2 sections

In the tensor panel, I would like to overlay 2 graphs on the same graph (training losses and neural network validation).

I see two separate graphs, but not one graph with two curves superimposed. Otherwise, I get one plot in a zigzag.

How can i do this?

+5
source share
2 answers

In Tensorboard, you can overlay two graphs. You will need to do one of the following:

  • Create two separate tf.train.SummaryWriter objects that will be displayed in two folders.

  • Create two summaries (e.g. tf.scalar_summary ) with the same name .

For example, for training planning and verification:

 # Before training train_summary = tf.scalar_summary('Loss', train_loss) vali_summary = tf.scalar_summary('Loss', vali_loss) train_writer = tf.train.SummaryWriter('/tmp/train'), sess.graph) vali_writer = tf.train.SummaryWriter('/tmp/vali'), sess.graph) # And then later train_writer.add_summary(...) vali_writer.add_summary(...) 
+2
source

If you specify a tensogram in a directory containing tf events for both runs, you can see them. (if you have them in subdirectories, indicate it to the parents of both).

+1
source

Source: https://habr.com/ru/post/1240646/


All Articles