Repository navigation
Is it possible to define dependency between two different config groups? #2792
|
In my use case, I want to load specific config groups depending on the value stored on the other config groups. For example, I defined two config groups
|
Replies: 2 comments 7 replies
|
Yes, basic interpolation support is available in the defaults list, see doc at https://hydra.cc/docs/advanced/defaults_list/#interpolation-in-the-defaults-list |
|
The solution above is correct. To make defaults:
- override /preprocess@_group_: v1The primary Defaults List must select
This sets the default dependency selection; an explicit command-line override still takes precedence. |
No that shouldn't work, because when parsing the defaults list the content of the config itself is not available yet.
I think what you're trying to achieve would better be done by overriding the defaults list from your
feature_extract/v2.yaml, as below.feature_extract/v2.yamlconfig.yamlEdit: see comment below for a slightly better syntax