MCPcopy
hub / github.com/microsoft/Cream / update

Method update

CDARTS/benchmark201/utils/utils.py:42–47  ·  view source on GitHub ↗

Update statistics

(self, val, n=1)

Source from the content-addressed store, hash-verified

40 self.count = 0
41
42 def update(self, val, n=1):
43 """ Update statistics """
44 self.val = val
45 self.sum += val * n
46 self.count += n
47 self.avg = self.sum / self.count
48
49def get_logger(file_path):
50 """ Make python logger """

Callers 8

trainFunction · 0.95
validateFunction · 0.95
test_sampleFunction · 0.95
trainFunction · 0.95
validateFunction · 0.95
searchFunction · 0.95
retrain_warmupFunction · 0.95
validateFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_sampleFunction · 0.76