Fix Jenkins issue introduced by Variant Generator (#1194)

* try fix

* shorten

* added a flag

* finish

* Fix linting.
This commit is contained in:
Richard Liaw
2017-11-09 00:56:20 -08:00
committed by Robert Nishihara
parent 1bf276cc08
commit 6197b260b8
2 changed files with 11 additions and 4 deletions
@@ -215,6 +215,15 @@ if __name__ == '__main__':
},
}
# These arguments are only for testing purposes.
parser = argparse.ArgumentParser()
parser.add_argument('--fast', action='store_true',
help='Run minimal iterations.')
args, _ = parser.parse_known_args()
if args.fast:
spec['stop']['training_iteration'] = 2
for trial in generate_trials(spec):
runner.add_trial(trial)