hello all , i am new to kedro framework and i have...
# questions
v
hello all , i am new to kedro framework and i have a question. how can i pass the parameters i use in kedro via cli instead of putting them in parametrs.yml file and set them as environmental variables? i want to type sth like 'kedro run --env env --params arg1,arg2,arg3' .Thank you in advance 😃
n
This syntax should work. You can check our docs or use the help message to get started.
kedro run --help
Copy code
...
...
  --conf-source PATH         Path of a directory where project configuration
                             is stored.
  --params TEXT              Specify extra parameters that you want to pass to
                             the context initialiser. Items must be separated
                             by comma, keys - by colon or equals sign,
                             example: param1=value1,param2=value2. Each
                             parameter is split by the first comma, so
                             parameter values are allowed to contain colons,
                             parameter keys are not. To pass a nested
                             dictionary as parameter, separate keys by '.',
                             example: param_group.param1:value1.
  -h, --help                 Show this message and exit.
v
i ran it successfully, thank you very much. However, i can't find a way to override the initial parameters. For instance i initially ran
kedro run --env env -params param1:250,param2:300,param3:600
but when i try to execute
kedro run -env env params param1:30,param2:450,param3:100
the model is executed with the first values, i.e.
param1:250,param2:300,param3:600
. Any ideas?
n
Would you be able to create an example that I can reproduce?
v
my fault, the --params from cli override the parameters successfully , i just found out, sorry and thank you for your guidance