pasteur.kedro.mlflow.parent.prettify_run_names

pasteur.kedro.mlflow.parent.prettify_run_names#

pasteur.kedro.mlflow.parent.prettify_run_names(run_params)[source]#

Generates a run name based on parameters that are short for use in graphs.

Parameters of each run are lined up with each other and left-justified. The resulting name is stripped to the right, to remove extra space at the end if possible. Left spaces remain to maintain structure if the final name is left-justified.

Parameters that start with _, get priority and only have their value printed. Ex. {“_alg”: “privbayes”, “e1”: “abc”} becomes privbayes e_1: abc.

Parameters composed of letters and then numbers have their number become an indicator: e1 becomes e_1, where _ indicates subscript. TODO

Parameters with boolean are only printed when true.