Replies: 1 comment 1 reply
-
Hi @dkajtoch, A promising technique is to automate synchronization between your config with other parts of your code. There are a few existing libraries that can help with such automation, namely
Generally, I'd recommend An alternative to automatic config generation would be to use Hydra unit tests to validate your config. The general workflow would be to compose the config and then instantiate it to make sure that nothing is broken. |
Beta Was this translation helpful? Give feedback.
-
Do you have any idea how to automatically test if hydra configs align with the actual code? Whenever I make a refactor e.g. change a class name then I need to search for the old class names in the configs manually and change them. This procedure is prone to errors especially when I have plenty of configs. Normally, in python, you have linters that would detect if something is not right with the code, but with hydra, I didn't find anything like this. Any ideas how to "test" configs with experiments especially when you use instantiate?
Beta Was this translation helpful? Give feedback.
All reactions