Resets the cumulative metrics dictionary for a new evaluation run.
(self)
| 102 | ManagedMLDiagnostics(config) # Initialize the MLRun instance. |
| 103 | |
| 104 | def reset_eval_metrics(self): |
| 105 | """Resets the cumulative metrics dictionary for a new evaluation run.""" |
| 106 | self.cumulative_eval_metrics = {"scalar": defaultdict(float)} |
| 107 | |
| 108 | def write_metrics(self, metrics, step, is_training=True): |
| 109 | """Entry point for all metrics writing in Train's Main.""" |