Пример #1
0
 def test_get_best_trial_non_completed_root(self):
     lineage = LineageNode(TrialStub(id="my-id"))
     assert lineage.get_best_trial() is None
Пример #2
0
 def test_get_best_trial_empty(self):
     trial = TrialStub(id="id-1", objective=1)
     lineage = LineageNode(trial)
     assert lineage.get_best_trial().id == "id-1"