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

Method get_history

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

Source from the content-addressed store, hash-verified

22 self.best_metrics[key] = max(self.best_metrics[key], value)
23
24 def get_history(self, key: str) -> List[Any]:
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):

Callers 2

get_averageMethod · 0.95
plot_training_curvesFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected