Update statistics
(self, val, n=1)
| 40 | self.count = 0 |
| 41 | |
| 42 | def update(self, val, n=1): |
| 43 | """ Update statistics """ |
| 44 | self.val = val |
| 45 | self.sum += val * n |
| 46 | self.count += n |
| 47 | self.avg = self.sum / self.count |
| 48 | |
| 49 | def get_logger(file_path): |
| 50 | """ Make python logger """ |
no outgoing calls