We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2671f2d + 088632e commit 97110e0Copy full SHA for 97110e0
1 file changed
examples/train_model.py
@@ -1,4 +1,4 @@
1
-import os.path
+import os
2
3
from pytorch_lightning import Trainer
4
from pytorch_lightning.callbacks import EarlyStopping
@@ -33,11 +33,15 @@
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
0 commit comments