Beispiel #1
0
 def reset(self, num_batches, num_samples) -> None:
     """Resets all fields"""
     self._ddp_backend = get_backend()
     self.scores = []
     self.targets = []
 def reset(self):
     """Reset all statistics"""
     self.statistics = {}
     self._ddp_backend = get_backend()
Beispiel #3
0
 def reset(self) -> None:
     """Reset confusion matrix, filling it with zeros."""
     self.conf.fill(0)
     self._ddp_backend = get_backend()
Beispiel #4
0
 def reset(self) -> None:
     """Reset all the statistics."""
     self.statistics = defaultdict(self._mp_hack)
     self._ddp_backend = get_backend()