microsoft / hi-ml

HI-ML toolbox for deep learning for medical imaging and Azure integration
https://aka.ms/hi-ml
MIT License
253 stars 58 forks source link

ENH: Add support to pass a prefix for hyperparam args #936

Closed fepegar closed 4 months ago

fepegar commented 4 months ago

When hyperparam_args is passed, the command is modified to add the argument in the settings. For example, if the looks like {learning_rate: [1, 2, 3]}, something like --learning_rate=${{inputs.learning_rate}} will be added to the command. But sometimes we wouldn't want the dashes, e.g., when using Hydra (learning_rate=${{inputs.learning_rate}} or maybe +learning_rate=${{inputs.learning_rate}}). This PR adds support to specify the prefix for the argument (default: "--"). For Hydra, we might want, e.g., "" or "+".