physioex.train.logger.NoOpLogger#

class physioex.train.logger.NoOpLogger[source]#

Bases: Logger

A logger that discards everything.

Used for --logger none, non-zero ranks in DDP, and tests.

__init__()#

Methods

__init__()

close()

Release backend resources at the end of training.

log(stage, epoch, step, loss[, accuracy, ...])

Log the scalar metrics of a single train/validation step.

log_figure(tag, figure, step)

Record a matplotlib figure (e.g. a confusion matrix).

log_graph(model, input_sample)

Record the model computational graph.

log_histogram(tag, values, step)

Record a distribution of values (e.g. weights or gradients).

log_hparams(hparams[, metrics])

Record run hyper-parameters once at the start of training.

log_learning_rate(step, value)

Record the learning rate used at a global step.

log_scalars(mapping, step)

Record a batch of named scalars (per-class metrics, aggregates).

log_update_norm(step, value)

Record the L2 norm of the optimizer update at a global step.

update()

Flush buffered events to the backend.

watch_model(model[, log_freq])

Automatically track parameters/gradients (W&B only).

log(stage, epoch, step, loss, accuracy=None, extra_metrics=None)[source]#

Log the scalar metrics of a single train/validation step.

Parameters:
Return type:

None