torchtraining.epochs¶
This module allows user to run multiple iterations
in consecutive order,
which constitutes a single epoch.
Currently, only default Epoch
is provided.
-
class
torchtraining.epochs.
Epoch
(*iterations, epochs: int, log: Union[str, int] = 'NONE')[source]¶ Bases:
torchtraining._base.Epoch
Loop over specified
iterations
untilepochs
number is reached.See
Introduction tutorial<>__
for examples.Note
IMPORTANT: This module is one of core features so be sure to understand how it works.
Note
IMPORTANT: Usually this is the top most class object used in training (composing multiple
iterations
).- Parameters
*iterations (Iterable[torchtraining.iterations.Iteration]) – Iterations to be run one after another during single loop pass.
epochs (int) – Keyword only argument specifying number of epochs to run.
log (str | int, optional) –
Severity level for logging object’s actions. Available levels of logging:
NONE 0
TRACE 5
DEBUG 10
INFO 20
SUCCESS 25
WARNING 30
ERROR 40
CRITICAL 50
Default:
NONE
(no logging,0
priority)