Hi, I am able to pass parameters to my Kedros pipe...
# questions
a
Hi, I am able to pass parameters to my Kedros pipeline at run time via the --params CLI as, kedro run --pipeline=experiment_one --params test_fold: 4 Here the same pipeline can be run with different test_folds. The challenge is how to use this dynamic variable "test_fold" to name output files on the fly? I am looking for a solution something like, node(func=test_function, inputs=[..], outputs='results_%s.parquet' % (params:test_fold), name='test_function') Assume my catalog.yml has the results_*.parquet files already pre-defined. Is this possible?
y
(Disclaimer:I think this is not a good idea to do this, you should use an experiment tracker like mlflow, W&B, Neptune ... to store the different results of your experiments) That said you can use the
runtime_params
resolver to achieve what you want :
# catalog.yml
Copy code
my_output:
    ...
    filepath: results_${runtime_params:test_fold}.parquet
a
@Yolan Honoré-Rougé Thank you for your reply. Let me experiment with this option.