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

Method get_latest

ML/src/python/neuralforge/utils/metrics.py:27–31  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

25 return [m.get(key) for m in self.metrics if key in m]
26
27 def get_latest(self, key: str) -> Any:
28 for m in reversed(self.metrics):
29 if key in m:
30 return m[key]
31 return None
32
33 def get_best(self, key: str) -> Any:
34 return self.best_metrics.get(key)

Callers 1

summaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected