MCPcopy
hub / github.com/PKU-YuanGroup/Helios / update

Method update

eval/utils/third_party/amt/utils/utils.py:25–29  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

23 self.count = 0
24
25 def update(self, val, n=1):
26 self.val = val
27 self.sum += val * n
28 self.count += n
29 self.avg = self.sum / self.count
30
31
32class AverageMeterGroups:

Callers 15

mainFunction · 0.45
run_single_configFunction · 0.45
run_experimentFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
load_videosFunction · 0.45
update_videosFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected