MCPcopy Index your code
hub / github.com/geekcomputers/Python / load

Method load

ML/src/python/neuralforge/utils/metrics.py:57–62  ·  view source on GitHub ↗
(self, filepath: str)

Source from the content-addressed store, hash-verified

55 json.dump(data, f, indent=2)
56
57 def load(self, filepath: str):
58 with open(filepath, 'r') as f:
59 data = json.load(f)
60
61 self.metrics = data.get('metrics', [])
62 self.best_metrics = data.get('best_metrics', {})
63
64 def summary(self) -> str:
65 lines = ["=" * 50, "Metrics Summary", "=" * 50]

Callers 3

mainFunction · 0.45
mainFunction · 0.45
load_modelMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 1

mainFunction · 0.36