MCPcopy
hub / github.com/PaddlePaddle/PaddleOCR / update

Method update

ppocr/utils/stats.py:48–52  ·  view source on GitHub ↗
(self, stats)

Source from the content-addressed store, hash-verified

46 }
47
48 def update(self, stats):
49 for k, v in stats.items():
50 if k not in self.smoothed_losses_and_metrics:
51 self.smoothed_losses_and_metrics[k] = SmoothedValue(self.window_size)
52 self.smoothed_losses_and_metrics[k].add_value(v)
53
54 def get(self, extras=None):
55 stats = collections.OrderedDict()

Callers 1

trainFunction · 0.95

Calls 2

SmoothedValueClass · 0.85
add_valueMethod · 0.80

Tested by

no test coverage detected