Skip to content

Commit 088632e

Browse files
committed
Reorder
1 parent d9bc1da commit 088632e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

examples/train_model.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,18 @@
3333
features = FEATURES.DEEPCORE
3434
truth = TRUTH.DEEPCORE[:-1]
3535

36+
# Make sure W&B output directory exists
37+
WANDB_DIR = "./wandb/"
38+
os.makedirs(WANDB_DIR, exist_ok=True)
39+
3640
# Initialise Weights & Biases (W&B) run
3741
wandb_logger = WandbLogger(
3842
project="example-script",
3943
entity="graphnet-team",
40-
save_dir="./wandb/",
44+
save_dir=WANDB_DIR,
4145
log_model=True,
4246
)
4347

44-
# -- Ensure that custom output directory exists
45-
os.makedirs(wandb_logger.save_dir, exists_ok=True)
46-
4748

4849
# Main function definition
4950
def main():

0 commit comments

Comments
 (0)