Hydra should allow a list of config groups t
Consider the case of including some set of metrics in an experiment. It would be nice to allow a user to specify these:
defaults:
- metrics
- accuracy
- loss
with the ability to override them.
This is fairly different from what hydra typically does, which seems to be oriented toward testing _mutually exclusive classes of configuration groups_ (e.g., mysql vs. postgres), but this would allow for more flexible overriding of user-defined list of attributes; for instance: in the above example:
./my_app.py metrics="[accuracy, loss, wps]"
If defaults need to be changed within these config groups:
./my_app.py metrics="[accuracy, loss, wps]" "metrics[0].class=some.custom.AccuracyClass"
Are you willing to open a pull request? (See CONTRIBUTING)
Yes.
There may be some clever way to achieve this already, but I don't believe it's covered in the documentation currently.
Duplicate of #499
Thanks for the suggestion, there is already a very similar one (#499).
This is a very fundamental change and will require some thinking, as well as some user facing changes that I want to make sure makes sense.
In the mean time, you can emulate this using OmegaConf merge functionality.
Ah, I didn't look hard enough - sorry about that! I'll drop down into OmegaConf for now and if we can move up a level to hydra later, that would be awesome. 馃憤 thanks for the quick response!
Most helpful comment
Ah, I didn't look hard enough - sorry about that! I'll drop down into OmegaConf for now and if we can move up a level to hydra later, that would be awesome. 馃憤 thanks for the quick response!