[tune] Add Unit Test for nested PBT + Jenkins (#7324)

This commit is contained in:
Richard Liaw
2020-02-27 18:17:11 -08:00
committed by GitHub
parent 8730996682
commit 3fc162f93c
5 changed files with 52 additions and 16 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ if __name__ == "__main__":
from ray.tune.schedulers import AsyncHyperBandScheduler
mnist.load_data() # we do this on the driver because it's not threadsafe
ray.init()
ray.init(num_cpus=2 if args.smoke_test else None)
sched = AsyncHyperBandScheduler(
time_attr="training_iteration",
metric="mean_accuracy",