Category: 03. Callbacks API
-
BackupAndRestore
Callback to back up and restore the training state. BackupAndRestore callback is intended to recover training from an interruption that has happened in the middle of a Model.fit execution, by backing up the training states in a temporary checkpoint file, at the end of each epoch. Each backup overwrites the previously written checkpoint file, so at any given…
-
ModelCheckpoint
Callback to save the Keras model or model weights at some frequency. ModelCheckpoint callback is used in conjunction with training using model.fit() to save a model or weights (in a checkpoint file) at some interval, so the model or weights can be loaded later to continue the training from the state saved. A few options this callback provides…
-
Base Callback class
Base class used to build new callbacks. Callbacks can be passed to keras methods such as fit(), evaluate(), and predict() in order to hook into the various stages of the model training, evaluation, and inference lifecycle. To create a custom callback, subclass keras.callbacks.Callback and override the method associated with the stage of interest. Example If you want to use Callback objects in a…