MCPcopy Create free account
hub / github.com/Closed11/Unsupervised-Image-Classification / reset

Method reset

UIC/util.py:10–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 self.reset()
9
10 def reset(self):
11 self.val = 0
12 self.avg = 0
13 self.sum = 0
14 self.count = 0
15
16 def update(self, val, n=1):
17 self.val = val

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected