making progress with hydra

This commit is contained in:
hobogalaxy committed 2021-01-07 22:40:21 +01:00
1 parent 610117f161
commit d24568e686
21 files changed
+142 -104

No files matched your search

+10 -9
View File
@@ -5,19 +5,20 @@ defaults:
- model: simple_mnist_classifier.yaml
- datamodule: mnist_datamodule.yaml
- optimizer: adam.yaml
- callbacks: default_callbacks.yaml
- loggers: null
- seeds: default_seeds.yaml # set this to null if you don't want to use seeds
- callbacks: default_callbacks.yaml # set this to null if you don't want to use callbacks
- logger: null # set logger here or use command line (e.g. `python train.py logger=wandb`)
seeds:
pytorch_seed: 12345
# path to working directory (the directory that `train.py` was executed from in command line)
work_dir: ${hydra:runtime.cwd}
paths:
data_dir: "data" # path to data folder (either absolute or relative to placement of 'train.py' file)
logs_dir: "logs" # path to logs folder (either absolute or relative to placement of 'train.py' file)
# path to folder with data
data_dir: ${work_dir}/data/
# hydra output paths
hydra:
run:
dir: ${paths.logs_dir}/hydra_logs/runs/${now:%Y-%m-%d}/${now:%H-%M-%S}
dir: logs/runs/${now:%Y-%m-%d}/${now:%H-%M-%S}
sweep:
dir: ${paths.logs_dir}/hydra_logs/sweeps/${now:%Y-%m-%d_%H-%M-%S}
dir: logs/multiruns/${now:%Y-%m-%d_%H-%M-%S}
subdir: ${hydra.job.num}