MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / update

Method update

utils/misc.py:93–97  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

91 self.count = 0
92
93 def update(self, val, n=1):
94 self.val = val
95 self.sum += val * n
96 self.count += n
97 self.avg = self.sum / self.count
98
99
100class PolyLR(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected