Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TensorFlow: Opening log data written by SummaryWriter

Tags:

After following this tutorial on summaries and TensorBoard, I've been able to successfully save and look at data with TensorBoard. Is it possible to open this data with something other than TensorBoard?

By the way, my application is to do off-policy learning. I'm currently saving each state-action-reward tuple using SummaryWriter. I know I could manually store/train on this data, but I thought it'd be nice to use TensorFlow's built in logging features to store/load this data.

like image 923
Veech Avatar asked Apr 18 '16 17:04

Veech


People also ask

How do I find the TensorFlow log?

If you are using python logging in your project, one of the option will be to define the logger with name "tensorflow" in a logging config file. Then _logger = _logging. getLogger('tensorflow') will use the logger and specified handlers from your config file.

Can we check metadata of model in TensorBoard?

Overview. Using the TensorFlow Text Summary API, you can easily log arbitrary text and view it in TensorBoard. This can be extremely helpful to sample and examine your input data, or to record execution metadata or generated text.

How do I view TensorBoard logs?

Visualize the Computational Graph First, you will see what the computational graph of your model looks like. You can access this view by clicking on the Graphs view on in TensorBoard.

How do I download data from TensorBoard?

Just check the "Data download links" option on the upper-left in TensorBoard, and then click on the "CSV" button that will appear under your scalar summary.


Video Answer


1 Answers

As of March 2017, the EventAccumulator tool has been moved from Tensorflow core to the Tensorboard Backend. You can still use it to extract data from Tensorboard log files as follows:

from tensorboard.backend.event_processing.event_accumulator import EventAccumulator event_acc = EventAccumulator('/path/to/summary/folder') event_acc.Reload() # Show all tags in the log file print(event_acc.Tags())  # E. g. get wall clock, number of steps and value for a scalar 'Accuracy' w_times, step_nums, vals = zip(*event_acc.Scalars('Accuracy')) 
like image 76
Chris Cundy Avatar answered Nov 23 '22 12:11

Chris Cundy