MCPcopy Create free account
hub / github.com/geekcomputers/Python / summary

Method summary

ML/src/python/neuralforge/utils/metrics.py:64–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.best_metrics = data.get('best_metrics', {})
63
64 def summary(self) -> str:
65 lines = ["=" * 50, "Metrics Summary", "=" * 50]
66
67 for key, value in self.best_metrics.items():
68 latest = self.get_latest(key)
69 if isinstance(value, float):
70 lines.append(f"{key}: best={value:.4f}, latest={latest:.4f}")
71 else:
72 lines.append(f"{key}: best={value}, latest={latest}")
73
74 lines.append("=" * 50)
75 return "\n".join(lines)
76
77class AverageMeter:
78 def __init__(self):

Callers

nothing calls this directly

Calls 2

get_latestMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected