How to record and view hyperparameters¶
Record hyperparameters¶
To record hyperparameters to a Run, you can use the
set_parameters
method.
import tlc
# Hyperparameters
EPOCHS = 5
BATCH_SIZE = 32
INITIAL_LR = 0.01
MODEL_NAME = "resnet18"
# Create a Run
run = tlc.init(
project_name = "my_project",
run_name = "my_run",
description = "record hyperparameters"
)
# Record the hyperparameters into the Run
config = {
"epochs": EPOCHS,
"batch_size": BATCH_SIZE,
"initial_lr": INITIAL_LR,
"model_name": MODEL_NAME
}
run.set_parameters(config)
View hyperparameters¶
To view the hyperparameters of a Run in the Dashboard, click the Run’s name on upper left corner and
then click Hyperparameters...
, or simply press SHIFT + P.

All recorded hyperparameters are listed in the popup Hyperparameters window.

When the eye icons are turned on in the Hyperparameters window, those hyperparameters will show up in the RUNS
panel
in the Runs page. You get a quick view of how the selected hyperparameters are set up for different Runs as shown below.
