-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose parameters for DEBUG mode #605
Comments
Seems that currently it only supports top-level key. Is there a reason to restrict it at the top-level only? |
Hi @noklam
Then you can dedicate debug/globals.yml
base/globals.yml
You can find an example in the documentation. |
Thx @lorenabalan, this would be a valida workaround. I am not sure if TemplatedConfig is designed for this purpose, I feel it is designed for string templat. Being able to compose configuration directly is still useful, as now we have 4 configuration files. |
Yeah I agree with you, I had made a note of this for a future team discussion. :) |
Closing this as resolved, with configuration environments to be looked at holistically for a future release. |
Description
I found it due to the config file, I cannot do dynamic stuff like
One way of doing so is leverage the environment and create a
debug
environment. However, it is only composable for additional key, if identical keys exist, thedebug
enviornment will overwrite completely.Context
This is very common usage to have a debug mode running fast development
Possible Implementation
Instead of overwrite the key, it should merge them, the provided environment should have higher priority. It also avoids duplicate the parameters, especially for ML project the # of parameters can be large. We should only specify the parameters that is changed.
What I wanted:
base
debug
result
Current behavior
base
debug
result
Possible Alternatives
A library like hydra provides the ability to compose two configuration file. We just need to merge two dictionary instead of overwriting it.
The text was updated successfully, but these errors were encountered: