[tune] Fix a number of reporter regressions and add end-to-end tests (#7274)

This commit is contained in:
Eric Liang
2020-02-25 14:31:56 -08:00
committed by GitHub
parent 75f683eec6
commit 1ea05a2c08
9 changed files with 241 additions and 71 deletions
+2
View File
@@ -73,6 +73,7 @@ class BasicVariantGenerator(SearchAlgorithm):
raise TuneError("Must specify `run` in {}".format(unresolved_spec))
for _ in range(unresolved_spec.get("num_samples", 1)):
for resolved_vars, spec in generate_variants(unresolved_spec):
trial_id = "%05d" % self._counter
experiment_tag = str(self._counter)
if resolved_vars:
experiment_tag += "_{}".format(format_vars(resolved_vars))
@@ -82,6 +83,7 @@ class BasicVariantGenerator(SearchAlgorithm):
output_path,
self._parser,
evaluated_params=flatten_resolved_vars(resolved_vars),
trial_id=trial_id,
experiment_tag=experiment_tag)
def is_finished(self):