Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add support to pass a prefix for hyperparam args (#936)
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 `"+"`. <!-- ## Guidelines Please follow the guidelines for pull requests (PRs) in [CONTRIBUTING](/CONTRIBUTING.md). Checklist: - Ensure that your PR is small, and implements one change - Give your PR title one of the prefixes listed in [CONTRIBUTING](../docs/source/coding_guidelines.md#pull-request-titles) to indicate what type of change that is - Link the correct GitHub issue for tracking - Add unit tests for all functions that you introduced or modified - Run automatic code formatting / linting on all files ("Format Document" Shift-Alt-F in VSCode) - Ensure that documentation renders correctly in Sphinx by running `make html` in the `docs` folder ## Change the default merge message When completing your PR, you will be asked for a title and an optional extended description. By default, the extended description will be a concatenation of the individual commit messages. Please DELETE/REPLACE that with a human readable extended description for non-trivial PRs. -->
- Loading branch information