You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not very familiar with hydra yet, not sure if this is a silly questions. Is it possible to compose a defaults list dynamically, before the @hydra.main function is invoked?
In my scenario, I aim to generate a defaults list dynamically based on a specific keyword schema. The objective is to utilize the value associated with schema as a structured configuration schema.
I want to automatically handle the package path for nested dictionaries, so that I don't have to write a complicated defaults list. But I can't find a suitable place to do this, for the defaults list of DictConfig has already been parsed after hydra.main is called.
The text was updated successfully, but these errors were encountered:
Use the Compose API (if you don't need the extra functionalities offered by hydra.main())
If you do need those extra functionalties, you may do it in two steps (use Compose API before calling hydra.main() to generate the final config and dump it to disk first)
Maybe hydra-zen can offer some flexible way to achieve this as well (if you're willing to move all your config logic to Python)
Not very familiar with hydra yet, not sure if this is a silly questions. Is it possible to compose a defaults list dynamically, before the @hydra.main function is invoked?
In my scenario, I aim to generate a defaults list dynamically based on a specific keyword schema. The objective is to utilize the value associated with schema as a structured configuration schema.
For instance, consider the following
config.yaml
:And a corresponding schema file named
schema/SchoolSchema.yaml
:The desired outcome would be a configuration that reflects the following structure:
I want to automatically handle the package path for nested dictionaries, so that I don't have to write a complicated defaults list. But I can't find a suitable place to do this, for the defaults list of DictConfig has already been parsed after hydra.main is called.
The text was updated successfully, but these errors were encountered: