MCPcopy
hub / github.com/showlab/Show-o / reset

Method reset

show-o2/utils.py:96–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.reset()
95
96 def reset(self):
97 self.val = 0
98 self.avg = 0
99 self.sum = 0
100 self.count = 0
101
102 def update(self, val, n=1):
103 self.val = val

Callers 4

__init__Method · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected