experiments: support dvc repro --exp command line params (#4331)

* experiments: support passing params values instead of reading from user's workspace

* repro: add --params option for experiments

* support toml params

* update invalid param error message

* update tests
This commit is contained in:
Peter Rowlands (변기호)
2020-08-07 00:04:02 +09:00
committed by GitHub
parent 4759517c8d
commit ab23bcd2e8
6 changed files with 131 additions and 16 deletions
+8
View File
@@ -44,6 +44,7 @@ class CmdRepro(CmdBase):
queue=self.args.queue,
run_all=self.args.run_all,
jobs=self.args.jobs,
params=self.args.params,
)
if len(stages) == 0:
@@ -177,6 +178,13 @@ def add_parser(subparsers, parent_parser):
default=False,
help=argparse.SUPPRESS,
)
repro_parser.add_argument(
"--params",
action="append",
default=[],
help="Declare parameter values for an experiment.",
metavar="[<filename>:]<params_list>",
)
repro_parser.add_argument(
"--queue", action="store_true", default=False, help=argparse.SUPPRESS
)