Skip to content

Commit

Permalink
put run_name in variable first
Browse files Browse the repository at this point in the history
rather than compute and use twice
  • Loading branch information
henryaddison committed Aug 5, 2024
1 parent 7de14dd commit f7967f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ml_downscaling_emulator/score_sde_pytorch/run_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ def train(config, workdir):
tb_dir = os.path.join(workdir, "tensorboard")
os.makedirs(tb_dir, exist_ok=True)

run_name = os.path.basename(workdir)
run_config = dict(
dataset=config.data.dataset_name,
input_transform_key=config.data.input_transform_key,
target_transform_key=config.data.target_transform_key,
architecture=config.model.name,
sde=config.training.sde,
name=os.path.basename(workdir),
name=run_name,
)
run_name = os.path.basename(workdir)

with track_run(
EXPERIMENT_NAME, run_name, run_config, ["score_sde"], tb_dir
Expand Down

0 comments on commit f7967f0

Please sign in to comment.