fmfreeze
11/23/2023, 11:44 AMmarrrcin
11/23/2023, 12:12 PMmarrrcin
11/23/2023, 12:14 PM# src/<package_name>/settings.py
DISABLE_HOOKS_FOR_PLUGINS = ("kedro-mlflow",)
HOOKS = (YourCustomMLflowHook(), )
https://docs.kedro.org/en/stable/hooks/introduction.html#disable-auto-registered-plugins-hooksYolan Honoré-Rougé
11/23/2023, 12:49 PMfmfreeze
11/23/2023, 1:14 PMruntime_params
introduced beside renaming the extra_params
argument.
Some thoughts:
I assume a hook has access to that runtime_params
dictionary. But from a plugin/hook perspective, a plugin does only require to know whether a runtime_params
entry addresses the plugin itself or not, to be able to properly process it further resp. override its own default setting. Do you agree?
So some kind of naming convention or similar mechanism from kedro side is required for runtime_params
to address a specific plugin/hook I guess 🤷♂️Yolan Honoré-Rougé
11/23/2023, 11:12 PM#mlflow.yml
server:
tracking:
run:
name: "${runtime_params:mlflow_run_name, null}"
and then kedro run --params mlflow_run_name=foo
may "just" work out of the boxYolan Honoré-Rougé
11/23/2023, 11:36 PMI assume a hook has access to thatReading the source code (https://github.com/kedro-org/kedro/blob/e8f1bfd72992336ec12591b49a5fa2654217472f/kedro/config/omegaconf_config.py#L387-L398), thedictionary. But from a plugin/hook perspective, a plugin does only require to know whether aruntime_params
entry addresses the plugin itself or not, to be able to properly process it further resp. override its own default setting. Do you agree?runtime_params
_runtime__params
are stored in the OmegaConfigLoader
, so if the plugin uses the project's configloader, I think it can benefit from all the resolvers automatically. Feel free to test and tell me :)fmfreeze
11/24/2023, 9:45 AM#mlflow.yml
> server:
> tracking:
> run:
> name: "${runtime_params:mlflow_run_name, null}"
> and then kedro run --params mlflow_run_name=foo
That does exactly what I asked for. Only: instead of null
i prefer a proper default experiment name 😄
Remains the question, how such runtime_param can be set when starting a run programmatically in python. But I am sure this is covered in the docs somewhere.
Thank you, awesome.marrrcin
11/27/2023, 8:16 AM