MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / reset_eval_metrics

Method reset_eval_metrics

src/MaxText/metric_logger.py:104–106  ·  view source on GitHub ↗

Resets the cumulative metrics dictionary for a new evaluation run.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 1

train_loopFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected