We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9bc1da commit 088632eCopy full SHA for 088632e
1 file changed
examples/train_model.py
@@ -33,17 +33,18 @@
33
features = FEATURES.DEEPCORE
34
truth = TRUTH.DEEPCORE[:-1]
35
36
+# Make sure W&B output directory exists
37
+WANDB_DIR = "./wandb/"
38
+os.makedirs(WANDB_DIR, exist_ok=True)
39
+
40
# Initialise Weights & Biases (W&B) run
41
wandb_logger = WandbLogger(
42
project="example-script",
43
entity="graphnet-team",
- save_dir="./wandb/",
44
+ save_dir=WANDB_DIR,
45
log_model=True,
46
)
47
-# -- Ensure that custom output directory exists
-os.makedirs(wandb_logger.save_dir, exists_ok=True)
-
48
49
# Main function definition
50
def main():
0 commit comments