hello! is there a way in kedro that I can pass a c...
# questions
y
hello! is there a way in kedro that I can pass a custom resolver which can be treated like
runtime_params
? for example,
Copy code
model_options:
  random_state: "${my_resolver:random, ${globals:my_global_value}}"
will this be legit in kedro?
@Nok Lam Chan any idea about this? :)
l
Hey @Youning Xia, could you provide some extra context on what are you trying to implement?
y
Of course! currently, if we have a
parameter.yaml
where we specify
Copy code
model_options:
  random_state: "${runtime_params:random, ${globals:my_global_value}}"
then when we run
Copy code
kedro run --params random=3
we can overwrite the value of
random_state
with what we provide at runtime, which is 3 in this case. I want to make the following tweaks possible: in
parameter.yaml
we write
Copy code
model_options:
  random_state: "${apple:random, ${globals:my_global_value}}"
and if I provide
Copy code
kedro run --params random=3
then,
random_state
will be overwritten by value 3 during runtime.
I also want kedro to recognise/understand that parameter prefixed by
apple:
is also a overwritable runtime parameter