TensorBoard#
Enable TensorBoard summaries in the experiment configuration, then open the run’s event files with the TensorBoard command.
Step 1: Activate the usage of tensorboard in Config file#
As shown in Training Pipeline, enable
TensorBoard in the experiment’s trainer_config before training.
Set trainer_config.use_tfb to true. ModelWrapper initializes
summary writers for the training and validation metrics.
NHP_train:
base_config:
stage: train
backend: torch
dataset_id: taxi
runner_id: std_tpp
model_id: NHP # model name
base_dir: './checkpoints/'
trainer_config:
batch_size: 256
max_epoch: 200
shuffle: false
optimizer: adam
learning_rate: 1.e-3
valid_freq: 1
use_tfb: true # activate TensorBoard
metrics: [ 'acc', 'rmse' ]
seed: 2019
gpu: -1
model_config:
hidden_size: 64
loss_integral_num_sample_per_step: 20
thinning:
num_sample: 1
num_exp: 500 # proposal chunk size in cumulative-bound space
patience_counter: 5 # per-interval bound-violation retry limit
over_sample_rate: 5
num_samples_boundary: 5
dtime_max: 5
num_step_gen: 1
Step 2: Launching the tensorboard#
Find tfb_train in the timestamped run directory below base_dir and
launch TensorBoard from the shell:
tensorboard --logdir ./checkpoints/<run-id>/tfb_train