-
I have the following config directory structure
Now in my So, something like: datasets:
-
id: 10
transforms: live.yaml
-
id: 12
transforms: batch.yaml This does not work as is. I am not sure how to specify such configs outside of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hydra's defaults list is the primary supported means for "including" other configs (i.e. yaml files) into your composed output config. A few alternatives to the defaults list:
Both of these alternatives sidestep Hydra. defaults:
- [email protected]: live.yaml
- [email protected]: batch.yaml
datasets:
-
id: 10
transforms: live.yaml
-
id: 12
transforms: batch.yaml This uses the |
Beta Was this translation helpful? Give feedback.
Hydra's defaults list is the primary supported means for "including" other configs (i.e. yaml files) into your composed output config.
A few alternatives to the defaults list:
transforms: "${my_custom_oc_file_loader:batch.yaml}"
datasets[0].transforms
and then load the given yaml file viaOmegaConf.load
orpyyaml
.Both of these alternatives sidestep Hydra.
For a Hydra solution using the defaults list, you could try something like this: