Claire BAUDIER
04/26/2023, 8:47 AMparams
», but using a file different from the default parameters.yml
file. Here is what I have in mind based on one of the documentation examples:
from kedro.config import ConfigLoader
from kedro.framework.project import settings
conf_path = str(project_path / settings.CONF_SOURCE)
conf_loader = ConfigLoader(conf_source=conf_path, env="local")
params = conf_loader.get(« other_parameters_file.yml")
# in node definition
def increase_volume(volume, step):
return volume + step
# in pipeline definition
node(
func=increase_volume,
inputs=["input_volume", "params:step_size"],
outputs="output_volume",
)
And the parameter step_size
would be in the other_parameters_file.yml.
My question is to know whether it is feasible with kedro to do that ? If so, how should it be done ?
Thanks a lot for your help !FlorianGD
04/26/2023, 8:52 AMother_parameters_file.yml
in a parameters
folder (in --say-- conf/base
), and it should be found if you use the standard config loader configurationClaire BAUDIER
04/26/2023, 8:54 AM