mirror of
https://github.com/wassname/ray.git
synced 2026-07-21 12:50:45 +08:00
[tune] strict metric checking (#10972)
This commit is contained in:
@@ -252,7 +252,7 @@ class SearchSpaceTest(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
searcher.set_search_properties("none", "max", invalid_config)
|
||||
|
||||
searcher = BayesOptSearch(metric="a", mode="max")
|
||||
searcher = BayesOptSearch(metric="b", mode="max")
|
||||
analysis = tune.run(
|
||||
_mock_objective, config=config, search_alg=searcher, num_samples=1)
|
||||
trial = analysis.trials[0]
|
||||
|
||||
Reference in New Issue
Block a user