TimeStopping
Callback for stopping training of a model when a specified amount of time has passed.
This callback could be used to limit the training time of a model to a specified maximum duration. When the specified amount of time passes, the training of the model is stopped (if it has not already been finished or stopped) at the end of current epoch.
Constructors
Functions
Called at the start of an epoch during training phase.
Called at the end of an epoch during training phase.
Called at the beginning of a batch during prediction phase.
Called at the end of a batch during prediction phase.
Called at the beginning of prediction.
Called at the end of prediction.
Called at the beginning of a batch during evaluation phase. Also called at the beginning of a validation batch during validation phase, if validation data is provided.
Called at the end of a batch during evaluation phase. Also called at the end of a validation batch during validation phase, if validation data is provided.
Called at the beginning of evaluation or validation.
Called at the beginning of a batch during training phase.
Called at the end of a batch during training phase.
Called at the beginning of training.
Called at the end of training. This method is empty. Extend this class to handle this event.