This is the current file structure that I have where the root config level has a main.yaml file and a models folder that consists of the different model definitions.
In my main.yaml file, I defined the default model as LGBM:
Hence, when I run config.models, I get
Let's say for example now I want to switch to testing a naive_seasonal model instead where it is defined as:
How do I do that with hydra in code? I know that I can override parameters in the main.yaml file, for example config.data.start_date = '2017-01-01'and that would override the original value. How do I do the same with the model so that it points to the right hyperparameters? I tried config.model_type = 'naive_s'but that only changes the model type and not the model hyperparameters.
This is the current file structure that I have where the root config level has a main.yaml file and a models folder that consists of the different model definitions.
In my main.yaml file, I defined the default model as LGBM:
Hence, when I run
config.models
, I getLet's say for example now I want to switch to testing a naive_seasonal model instead where it is defined as:
How do I do that with hydra in code? I know that I can override parameters in the main.yaml file, for example
config.data.start_date = '2017-01-01'
and that would override the original value. How do I do the same with the model so that it points to the right hyperparameters? I triedconfig.model_type = 'naive_s'
but that only changes the model type and not the model hyperparameters.