MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / update

Method update

tools/utils/stats.py:35–40  ·  view source on GitHub ↗
(self, stats)

Source from the content-addressed store, hash-verified

33 }
34
35 def update(self, stats):
36 for k, v in stats.items():
37 if k not in self.smoothed_losses_and_metrics:
38 self.smoothed_losses_and_metrics[k] = SmoothedValue(
39 self.window_size)
40 self.smoothed_losses_and_metrics[k].add_value(v)
41
42 def get(self, extras=None):
43 stats = collections.OrderedDict()

Callers 15

trainMethod · 0.95
__call__Method · 0.45
__init__Method · 0.45
eval_stepMethod · 0.45
evalMethod · 0.45
urlretrieveFunction · 0.45
no_weight_decayMethod · 0.45
build_post_processFunction · 0.45
create_operatorsFunction · 0.45
no_weight_decayMethod · 0.45
conv_func_by_nameFunction · 0.45

Calls 2

SmoothedValueClass · 0.85
add_valueMethod · 0.80

Tested by

no test coverage detected