MCPcopy Create free account
hub / github.com/davda54/sam / __init__

Method __init__

example/utility/log.py:6–10  ·  view source on GitHub ↗
(self, log_each: int, initial_epoch=-1)

Source from the content-addressed store, hash-verified

4
5class 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

Callers

nothing calls this directly

Calls 1

LoadingBarClass · 0.90

Tested by

no test coverage detected