MCPcopy Create free account
hub / github.com/JIA-Lab-research/LISA / reset

Method reset

utils/utils.py:61–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self.reset()
60
61 def reset(self):
62 self.val = 0
63 self.avg = 0
64 self.sum = 0
65 self.count = 0
66
67 def update(self, val, n=1):
68 self.val = val

Callers 2

trainFunction · 0.95
__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected