(self, log_each: int, initial_epoch=-1)
| 4 | |
| 5 | class Log: |
| 6 | def __init__(self, log_each: int, initial_epoch=-1): |
| 7 | self.loading_bar = LoadingBar(length=27) |
| 8 | self.best_accuracy = 0.0 |
| 9 | self.log_each = log_each |
| 10 | self.epoch = initial_epoch |
| 11 | |
| 12 | def train(self, len_dataset: int) -> None: |
| 13 | self.epoch += 1 |