Shortcuts

pytorch_lightning.trainer.callback_hook module

class pytorch_lightning.trainer.callback_hook.TrainerCallbackHookMixin[source]

Bases: abc.ABC

on_batch_end()[source]

Called when the training batch ends.

on_batch_start()[source]

Called when the training batch begins.

on_epoch_end()[source]

Called when the epoch ends.

on_epoch_start()[source]

Called when the epoch begins.

on_fit_end()[source]

Called when the trainer initialization begins, model has not yet been set.

on_fit_start()[source]

Called when the trainer initialization begins, model has not yet been set.

on_init_end()[source]

Called when the trainer initialization ends, model has not yet been set.

on_init_start()[source]

Called when the trainer initialization begins, model has not yet been set.

on_keyboard_interrupt()[source]

Called when the training is interrupted by KeyboardInterrupt.

on_sanity_check_end()[source]

Called when the validation sanity check ends.

on_sanity_check_start()[source]

Called when the validation sanity check starts.

on_test_batch_end()[source]

Called when the test batch ends.

on_test_batch_start()[source]

Called when the test batch begins.

on_test_end()[source]

Called when the test ends.

on_test_start()[source]

Called when the test begins.

on_train_end()[source]

Called when the train ends.

on_train_start()[source]

Called when the train begins.

on_validation_batch_end()[source]

Called when the validation batch ends.

on_validation_batch_start()[source]

Called when the validation batch begins.

on_validation_end()[source]

Called when the validation loop ends.

on_validation_start()[source]

Called when the validation loop begins.

setup(stage)[source]

Called in the beginning of fit and test

teardown(stage)[source]

Called at the end of fit and test

callbacks: List[pytorch_lightning.callbacks.base.Callback] = [][source]
get_model: Callable = Ellipsis[source]