mirror of
https://github.com/wassname/ray.git
synced 2026-07-26 13:37:24 +08:00
[Tune] Pbt Function API (#9958)
* adding function convnet example * add unit test * update test * update example * wip * move error from experiment to tune * wip * Fix checkpoint deletion * updating code * adding smoke test * updating pbt guide * formatting * fix build * add best checkpoint analysis util * update test * add comments * remove class api * fix example * add setup and teardown to tests * formatting * Update python/ray/tune/tests/test_trial_scheduler_pbt.py Co-authored-by: Kai Fricke <kai@anyscale.com> Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
co-authored by
Kai Fricke
Richard Liaw
parent
fba5906ce3
commit
f87a4aa45d
@@ -137,7 +137,7 @@ class CheckpointManager:
|
||||
self._membership.remove(worst)
|
||||
# Don't delete the newest checkpoint. It will be deleted on the
|
||||
# next on_checkpoint() call since it isn't in self._membership.
|
||||
if worst != checkpoint:
|
||||
if worst.value != checkpoint.value:
|
||||
self.delete(worst)
|
||||
|
||||
def best_checkpoints(self):
|
||||
|
||||
Reference in New Issue
Block a user