[tune] Deprecate ambiguous function values (use tune.function / tune.sample_from instead) (#3457)

* wip

* exclude
This commit is contained in:
Eric Liang
2018-12-06 11:35:20 -08:00
committed by GitHub
parent d864f299d7
commit 412aaa5195
13 changed files with 96 additions and 39 deletions
+4 -2
View File
@@ -182,8 +182,10 @@ if __name__ == '__main__':
"run": "train_mnist",
"num_samples": 1 if args.smoke_test else 10,
"config": {
"lr": lambda spec: np.random.uniform(0.001, 0.1),
"momentum": lambda spec: np.random.uniform(0.1, 0.9),
"lr": tune.sample_from(
lambda spec: np.random.uniform(0.001, 0.1)),
"momentum": tune.sample_from(
lambda spec: np.random.uniform(0.1, 0.9)),
}
}
},