Posts

Showing posts with the label tensorboard

How to plot different summary metrics on the same plot with Tensorboard?

How to plot different summary metrics on the same plot with Tensorboard? I would like to be able plot the training loss per batch and the average validation loss for the validation set on the same plot in Tensorboard. I ran into this issue when my validation set was too large to fit into memory so required batching and the use of tf.metrics update ops. tf.metrics This question could apply to any Tensorflow metrics you wanted to appear on the same graph in Tensorboard. I am able to train_summ In the example code below, my issue stems from the fact that my validation summary tf.summary.scalar with name=loss gets renamed to loss_1 and thus is moved to a separate graph in Tensorboard. From what I can work out Tensorboard takes "same name" and plots them on the same graph, regardless of what folder they are in. This is frustrating as train_summ (name=loss) is only ever written to the train folder and valid_summ (name=loss) is only ever written to the valid folder - but...