Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
May 15, 2024

Conversation

fepegar
Copy link
Contributor

@fepegar fepegar commented May 13, 2024

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 "+".

Copy link
Contributor

@vale-salvatelli vale-salvatelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

hi-ml-azure/src/health_azure/himl.py Outdated Show resolved Hide resolved
@fepegar fepegar merged commit 664ac09 into main May 15, 2024
43 checks passed
@fepegar fepegar deleted the fperezgarcia/support-custom-hyperdrive-arg-prefix branch May 15, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants