-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from openclimatefix/config_placeholders
Add placeholders to configs.eample
- Loading branch information
Showing
18 changed files
with
105 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
_target_: pvnet.data.datamodule.DataModule | ||
configuration: null | ||
batch_dir: "/mnt/disks/batches2/batches_v3.1" | ||
num_workers: 20 | ||
# The batch_dir is the location batches were saved to using the save_batches.py script | ||
# The batch_dir should contain train and val subdirectories with batches | ||
batch_dir: "PLACEHOLDER" | ||
num_workers: 10 | ||
prefetch_factor: 2 | ||
batch_size: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_target_: pvnet.data.datamodule.DataModule | ||
# Path to the data configuration yaml file. You can find examples in the configuration subdirectory | ||
# in configs.example/datamodule/configuration | ||
configuration: "PLACEHOLDER.yaml" | ||
num_workers: 20 | ||
prefetch_factor: 2 | ||
batch_size: 8 | ||
train_period: | ||
- null | ||
- "2022-05-07" | ||
val_period: | ||
- "2022-05-08" | ||
- "2023-05-08" | ||
test_period: | ||
- "2022-05-08" | ||
- "2023-05-08" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# train with many loggers at once | ||
|
||
defaults: | ||
# - aim.yaml | ||
# - comet.yaml | ||
- csv.yaml | ||
# - mlflow.yaml | ||
# - neptune.yaml | ||
# - tensorboard.yaml | ||
- wandb.yaml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
The following folders how the configuration files | ||
|
||
This idea is copied from | ||
https://github.com/ashleve/lightning-hydra-template/blob/main/configs/experiment/example_simple.yaml | ||
This directory contains example configuration files for the PVNet project. Many paths will need to | ||
be each user. YOu can find these paths by searching for PLACEHOLDER within these logs. Not all of | ||
the values with a placeholder need to be set. For example in the logger subdirectory there are | ||
many different loggers with PLACEHOLDERS. If only one logger is used, then only that placeholder | ||
need be set. | ||
|
||
run experiments by: | ||
`python run.py experiment=example_simple ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
_target_: lightning.pytorch.trainer.trainer.Trainer | ||
|
||
# set `1` to train on GPU, `0` to train on CPU only | ||
accelerator: gpu | ||
accelerator: auto | ||
devices: auto | ||
|
||
min_epochs: null | ||
max_epochs: null | ||
reload_dataloaders_every_n_epochs: 0 | ||
num_sanity_val_steps: 8 | ||
fast_dev_run: false | ||
#profiler: 'simple' | ||
|
||
accumulate_grad_batches: 4 | ||
#val_check_interval: 800 | ||
#limit_val_batches: 800 | ||
log_every_n_steps: 50 |