Brandon Meek
04/24/2024, 9:49 PMruntime_params
but session.run()
doesn't take runtime_params
, it seems like those should be put in KedroContext
but creating a new context looses all of the other information and there doesn't seem to be an easy way to create a new context from an existing one or just add extra_params
. Is there something I'm missing or is this a weird use-case?Nok Lam Chan
04/24/2024, 11:43 PMBrandon Meek
04/24/2024, 11:53 PM%load_ext kedro.Ipython
to create the session, but in future iterations I imagine I would use bootstrapYolan Honoré-Rougé
04/25/2024, 6:53 AMYolan Honoré-Rougé
04/25/2024, 6:54 AMYolan Honoré-Rougé
04/25/2024, 6:55 AMNok Lam Chan
04/25/2024, 9:52 AMYolan Honoré-Rougé
04/25/2024, 10:07 AMNok Lam Chan
04/25/2024, 10:26 AMwith KedroSession.create(xxx, extra_params) as session:
session.run()
You need to re-create a new session everytime.
For a slightly more hacky solution, I think this should work:
def update_runtime_params(session, runtime_params: dict):
session._store["extra_params"] = runtime_params
update_runtime_params(session, params)
session.run()
The way how session getting params from the session store is weird and session store is tight to the experiment tracking feature a lot which I am not a fan of.Nok Lam Chan
04/25/2024, 10:27 AMBrandon Meek
04/25/2024, 2:00 PMNok Lam Chan
04/25/2024, 2:15 PM