-
Notifications
You must be signed in to change notification settings - Fork 157
Usage of an explicit overrides node #48
Comments
Hey, curious to know why. |
The core idea behind Hydra is that it gives you the config you need. Is there a reason you prefer this over offloading this logic to Hydra's config composition? |
I'm still using Hydra composition, but maybe the name overrides is misleading? The reason for this config group (overrides) is that I can give users default hyperparameter values that work well for each specific environment, in separate files. Maybe Of course, if there is a better pattern for this I'm happy to use it, I couldn't find one at the time I wrote this. |
I uploaded a version that uses nested defaults to get around overrides specifying algorithm and model |
How you represent the configs in the config dir is one thing, what the application is getting is another. Hydra 1.1 will actually have nested default lists, which will probably offer an even cleaner solution for those. |
I'm a bit confused by this sentence: "How you represent the configs in the config dir is one thing, what the application is getting is another." What is this other thing the application is getting? I'm using exactly the configuration that I specify in my yaml file. Or, on second look, are you referring to the fact that I'm using another config path as a default ( |
What I am going for is that the config the application is getting should be exactly what it needs. If you buy into that, the question becomes: "How do we get Hydra to build the config object you need?" (Of course, if your application actually needs both values for some reason what you are doing is fine, but I suspect you are using one or the other. never both). |
@natolambert Thanks for sharing. Keep in mind that the original reason I went with the current design is to avoid having a bunch of My ideal scenario would be that Hydra lets me do something like the structure below. @omry is this already possible?
PS: Writing this, I think |
Hydra 1. 1 offers several ways to avoid config repetition:
Look at those 3 docs. The last one is a cleaner form of what mbrl was using (that predated anything close to nested defaults, which enables the first two). |
Thanks @omry, I'll take a look at those! |
Cool. They are all implementations of what is described in https://hydra.cc/docs/next/advanced/defaults_list, be sure to read it first. |
Heya,
I think this not a great idea, happy to discuss why:
mbrl-lib/mbrl/algorithms/pets.py
Line 24 in c7a7425
The text was updated successfully, but these errors were encountered: