MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / __init__

Method __init__

util/utils.py:523–528  ·  view source on GitHub ↗
(self, init_res=0.0, better='large', use_ema=False)

Source from the content-addressed store, hash-verified

521
522class BestMetricHolder():
523 def __init__(self, init_res=0.0, better='large', use_ema=False) -> None:
524 self.best_all = BestMetricSingle(init_res, better)
525 self.use_ema = use_ema
526 if use_ema:
527 self.best_ema = BestMetricSingle(init_res, better)
528 self.best_regular = BestMetricSingle(init_res, better)
529
530 def update(self, new_res, epoch, is_ema=False):
531 """return if the results is the best."""

Callers

nothing calls this directly

Calls 1

BestMetricSingleClass · 0.85

Tested by

no test coverage detected