Path: blob/master/site/en-snapshot/tensorboard/tbdev_getting_started.ipynb
25115 views
Copyright 2020 The TensorFlow Authors.
Getting started with TensorBoard.dev
TensorBoard.dev is a free, public TensorBoard service that enables you to upload and share your ML experiments with everyone.
This notebook trains a simple model and shows how to upload the logs to TensorBoard.dev. Preview.
Setup and imports
This notebook uses TensorBoard features which are only available for versions >= 2.3.0
.
Train a simple model and create TensorBoard logs
TensorBoard logs are created during training by passing the TensorBoard and hyperparameters callbacks to Keras' Model.fit(). These logs can then be uploaded to TensorBoard.dev.
(Jupyter only) Authorize TensorBoard.dev
This step is not necessary in Colab
This step requires you to auth in your shell console, outside of Jupyter. In your console, execute the following command.
tensorboard dev list
As part of this flow, you will be provided with an authorization code. This code is required to consent to the Terms of Service.
Upload to TensorBoard.dev
Uploading the TensorBoard logs will give you a URL that can be shared with anyone.
Uploaded TensorBoards are public, so do not upload sensitive data.
The uploader will exit when the entire logdir has uploaded. (This is what the --one_shot
flag specifies.)
Each individual upload has a unique experiment ID. This means that if you start a new upload with the same directory, you will get a new experiment ID. You can view all your uploaded experiments at https://tensorboard.dev/experiments/. Alternatively, you can list your experiments in the terminal using the following command:
Screenshots of TensorBoard.dev
This is what it will look like when you navigate to https://tensorboard.dev/experiments/:
This is what it will look like when you navigate to your new experiment on TensorBoard.dev:
Deleting your TensorBoard.dev experiment
To remove an experiment you have uploaded, use the delete
command and specify the appropriate experiment_id
. In the above screenshot, the experiment_id is listed in the bottom left corner: w1lkBAOrR4eH35Y7Lg1DQQ
.