MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / reset

Method reset

pycontrast/learning/util.py:11–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected