-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split read_params_from_cmdline for job and main script and use argparse
`read_params_from_cmdline()` was previously used by both the cluster_utils main script (e.g. grid_search.py) and the job scripts. They have different requirements and thus the function was pretty convoluted. With this change now - `read_params_from_cmdline()` is only responsible only for the job scripts. It is refactored and uses argparse internally for hopefully better readable code and `--help`-support. - `read_main_script_params_with_smart_settings()` is the counter-part for the grid_search/hp_optimization scripts. BREAKING: `read_params_from_cmdline()`: The job script now expects named arguments instead of positional ones. This makes the optionality of server information and distinction between settings file vs dictionary string much easier to implement. This affects manual calls of the job script and may break non-python job scripts which operate on the arguments. Further support for custom hooks has been removed as it doesn't seem to be relevant here.
- Loading branch information
Showing
3 changed files
with
156 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters