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

Method get

ppocr/utils/stats.py:54–62  ·  view source on GitHub ↗
(self, extras=None)

Source from the content-addressed store, hash-verified

52 self.smoothed_losses_and_metrics[k].add_value(v)
53
54 def get(self, extras=None):
55 stats = collections.OrderedDict()
56 if extras:
57 for k, v in extras.items():
58 stats[k] = v
59 for k, v in self.smoothed_losses_and_metrics.items():
60 stats[k] = round(v.get_median_value(), 6)
61
62 return stats
63
64 def log(self, extras=None):
65 d = self.get(extras)

Callers 2

logMethod · 0.95
trainFunction · 0.95

Calls 1

get_median_valueMethod · 0.80

Tested by

no test coverage detected