From e3ecc7281c6d98750b258c478387b8d9a0b5a3ee Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Thu, 16 May 2019 15:40:02 -0700 Subject: [PATCH] Remove extra parsing functionality --- python/ray/tune/config_parser.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/python/ray/tune/config_parser.py b/python/ray/tune/config_parser.py index 864ed6402639..139ef6f82bc3 100644 --- a/python/ray/tune/config_parser.py +++ b/python/ray/tune/config_parser.py @@ -76,22 +76,6 @@ def make_parser(parser_creator=None, **kwargs): default="", type=str, help="Optional URI to sync training results to (e.g. s3://bucket).") - parser.add_argument( - "--trial-name-creator", - default=None, - help="Optional creator function for the trial string, used in " - "generating a trial directory.") - parser.add_argument( - "--sync-function", - default=None, - help="Function for syncing the local_dir to upload_dir. If string, " - "then it must be a string template for syncer to run and needs to " - "include replacement fields '{local_dir}' and '{remote_dir}'.") - parser.add_argument( - "--loggers", - default=None, - help="List of logger creators to be used with each Trial. " - "Defaults to ray.tune.logger.DEFAULT_LOGGERS.") parser.add_argument( "--checkpoint-freq", default=0, @@ -187,7 +171,7 @@ def create_trial_from_spec(spec, output_path, parser, **trial_kwargs): A trial object with corresponding parameters to the specification. """ try: - args = parser.parse_args(to_argv(spec)) + args, _ = parser.parse_known_args(to_argv(spec)) except SystemExit: raise TuneError("Error parsing args, see above message", spec) if "resources_per_trial" in spec: