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
Describe the solution you'd like
I'd like to be able to call hydra.utils.instantiate(cfg.agent) and this should recursively initialize the parameters.
I'd also like to be able to default one of the complex_property and be able to override them from the CLI.
I'd also like to be able to default a complex_property that is not necessarily in a sub-directory (by giving a relative path to the .yaml file for instance).
Describe alternatives you've considered
I just initialized the complex_property with hydra.utils.instantiate and then within python initialize the agent.
The text was updated successfully, but these errors were encountered:
It is also useful to set a global parameter (in this case the seed) in the config.yaml, such that if you modify it from the CLI, you modify it in all the configs, too.
It is also useful to set a global parameter (in this case the seed) in the config.yaml, such that if you modify it from the CLI, you modify it in all the configs, too.
See interpolations in the OmegaConf documentation.
π Feature Request
It is useful to have a recursive object initialization.
Motivation
Suppose I have the following structure
The class Agent is defined as follows
The class ComplexProperty is defined as follows
The agent.yaml looks like:
Pitch
Describe the solution you'd like
I'd like to be able to call hydra.utils.instantiate(cfg.agent) and this should recursively initialize the parameters.
I'd also like to be able to default one of the complex_property and be able to override them from the CLI.
I'd also like to be able to default a complex_property that is not necessarily in a sub-directory (by giving a relative path to the .yaml file for instance).
Describe alternatives you've considered
I just initialized the complex_property with hydra.utils.instantiate and then within python initialize the agent.
The text was updated successfully, but these errors were encountered: