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

Method reset

ML/src/python/neuralforge/utils/metrics.py:131–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 self.matrix[target, pred] += 1
130
131 def reset(self):
132 self.matrix = np.zeros((self.num_classes, self.num_classes), dtype=np.int64)
133
134 def compute_metrics(self) -> Dict[str, float]:
135 tp = np.diag(self.matrix)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected