MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / __init__

Method __init__

common/utils.py:12–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class AccumLoss(object):
12 def __init__(self):
13 self.val = 0
14 self.avg = 0
15 self.sum = 0
16 self.count = 0
17
18 def update(self, val, n=1):
19 self.val = val

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected