MCPcopy Create free account
hub / github.com/geekcomputers/Python / reset

Method reset

ML/src/python/neuralforge/utils/metrics.py:81–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.reset()
80
81 def reset(self):
82 self.val = 0
83 self.avg = 0
84 self.sum = 0
85 self.count = 0
86
87 def update(self, val, n=1):
88 self.val = val

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected