Update statistics
(self, val, n=1)
| 23 | self.count = 0 |
| 24 | |
| 25 | def update(self, val, n=1): |
| 26 | """ Update statistics """ |
| 27 | self.val = val |
| 28 | self.sum += val * n |
| 29 | self.count += n |
| 30 | self.avg = self.sum / self.count |
| 31 | |
| 32 | def get_logger(file_path): |
| 33 | """ Make python logger """ |
no outgoing calls