MCPcopy Create free account
hub / github.com/cure-lab/deep-active-learning / update

Method update

utils.py:35–39  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

33 self.count = 0
34
35 def update(self, val, n=1):
36 self.val = val
37 self.sum += val * n
38 self.count += n
39 self.avg = self.sum / self.count
40
41
42

Callers 12

trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
_trainMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected