Marc Gris
07/05/2023, 10:20 AMconf/base/parameters.yml
I have
model:
init:
k: 3
loss: warp
no_embeddings: 50
learning_schedule: adagrad
rho: 0.95
epsilon: 1.e-6
random_state: ${random_state}
How can I “update” a single specific field “locally”
I’ve first tried in conf/local/parameters.yml
model:
init:
no_embeddings: 100
But this actually completely over-writes the model section and, of course, breaks everything.
Granted: I could cp conf/base/parameters.yml conf/local/parameters
and then update no_embeddings
But this ends up being very “noisy”, not really “highlighting” the specificities of the local config…
Is there a way to do such local / “surgical over-write” ?
Thx 🙂Javier del Villar
07/05/2023, 12:06 PMconf/base/parameters.yml
with a hook and update the value, maybe there is a cleaner way.
Refs:
• https://stackoverflow.com/questions/40762382/changing-a-value-in-a-yaml-file-using-python
• Unrealated video but at minute 9:07 updates the parameters Marc Gris
07/05/2023, 2:14 PMmarrrcin
07/05/2023, 2:26 PMJuan Luis
07/05/2023, 2:41 PMMerel
07/05/2023, 2:44 PM0.19.0
because it is a breaking change: https://github.com/kedro-org/kedro/issues/2122Marc Gris
07/05/2023, 2:52 PMMerel
07/05/2023, 2:53 PMOmegaConfigLoader
as we’ll be removing the old legacy config loaders in 0.19.0
🙂Marc Gris
07/05/2023, 2:58 PMOmegaConfigLoader
🙂 👍Merel
07/05/2023, 3:01 PM