medkit.training.callbacks
medkit.training.callbacks#
Classes:
Default implementation of |
|
A TrainerCallback is the base class for trainer callbacks |
- class TrainerCallback[source]#
A TrainerCallback is the base class for trainer callbacks
Methods:
on_epoch_begin
(epoch)Event called at the beginning of an epoch
on_epoch_end
(metrics, epoch, epoch_time)Event called at the end of an epoch
on_save
(checkpoint_dir)Event called on saving a checkpoint
on_step_begin
(step_idx, nb_batches, phase)Event called at the beginning of a step in training
on_step_end
(step_idx, nb_batches, phase)Event called at the end of a step in training
on_train_begin
(config)Event called at the beginning of training
Event called at the end of training
- class DefaultPrinterCallback[source]#
Default implementation of
TrainerCallback
Methods:
on_epoch_begin
(epoch)Event called at the beginning of an epoch
on_epoch_end
(metrics, epoch, epoch_duration)Event called at the end of an epoch
on_save
(checkpoint_dir)Event called on saving a checkpoint
on_step_begin
(step_idx, nb_batches, phase)Event called at the beginning of a step in training
on_step_end
(step_idx, nb_batches, phase)Event called at the end of a step in training
on_train_begin
(config)Event called at the beginning of training
Event called at the end of training
- on_step_begin(step_idx, nb_batches, phase)[source]#
Event called at the beginning of a step in training
- on_epoch_begin(epoch)#
Event called at the beginning of an epoch