module emote.callbacks.logging
Classes
class TensorboardLogger(Callback):
Logs the provided loggable callbacks to tensorboard.
Methods
def __init__(self, loggables, writer, log_interval, log_by_samples) -> None
Arguments:
loggables(List[LoggingMixin])
writer(SummaryWriter)
log_interval(int)
log_by_samples(bool)
def begin_training(self, bp_step, bp_samples) -> None
def end_cycle(self, bp_step, bp_samples) -> None
class TerminalLogger(Callback):
Logs the provided loggable callbacks to the python logger.
Methods
def __init__(self, callbacks, log_interval) -> None
Arguments:
callbacks(List[LoggingMixin])
log_interval(int)
def log_scalars(self, step, suffix) -> None
Logs scalar logs adding optional suffix on the first level. Example: If k='training/loss' and suffix='bp_step', k will be renamed to 'training_bp_step/loss'.
Arguments:
step
suffix
def end_cycle(self, bp_step) -> None