(self, filepath: str)
| 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] |