[tune] Tutorial UX Changes (#4990)

* add integration, iris, ASHA, recursive changes, set reuse_actors=True, and enable Analysis as a return object

* docstring

* fix up example

* fix

* cleanup tests

* experiment analysis
This commit is contained in:
Richard Liaw
2019-06-21 12:59:49 +08:00
committed by GitHub
parent 1d17125333
commit 31b6da12f9
13 changed files with 209 additions and 85 deletions
@@ -441,6 +441,14 @@ class TrainableFunctionApiTest(unittest.TestCase):
self.assertRaises(TuneError, f)
def testNestedStoppingReturn(self):
def train(config, reporter):
for i in range(10):
reporter(test={"test1": {"test2": i}})
[trial] = tune.run(train, stop={"test": {"test1": {"test2": 6}}})
self.assertEqual(trial.last_result["training_iteration"], 7)
def testEarlyReturn(self):
def train(config, reporter):
reporter(timesteps_total=100, done=True)