(self, val: float, n: int = 1)
| 474 | self.count = 0 |
| 475 | |
| 476 | def update(self, val: float, n: int = 1): |
| 477 | self.val = val |
| 478 | self.sum += val * n |
| 479 | self.count += n |
| 480 | self.avg = self.sum / self.count |
| 481 | |
| 482 | |
| 483 | def accuracy(output, target, topk=(1,)): |
no outgoing calls
no test coverage detected