MCPcopy Index your code
hub / github.com/microsoft/Cream / update

Method update

CDARTS/lib/utils/utils.py:25–30  ·  view source on GitHub ↗

Update statistics

(self, val, n=1)

Source from the content-addressed store, hash-verified

23 self.count = 0
24
25 def update(self, val, n=1):
26 """ Update statistics """
27 self.val = val
28 self.sum += val * n
29 self.count += n
30 self.avg = self.sum / self.count
31
32def get_logger(file_path):
33 """ Make python logger """

Callers 13

get_path_accFunction · 0.95
train_epochFunction · 0.95
validateFunction · 0.95
validateFunction · 0.95
train_epochFunction · 0.95
trainFunction · 0.95
validateFunction · 0.95
test_sampleFunction · 0.95
trainFunction · 0.95
validateFunction · 0.95
searchFunction · 0.95
retrain_warmupFunction · 0.95

Calls

no outgoing calls

Tested by 2

validateFunction · 0.76
test_sampleFunction · 0.76