ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.callbacks.CallbackList

Container abstracting a list of callbacks.

callbacks List of Callback instances.
add_history Whether a History callback should be added, if one does not already exist in the callbacks list.
add_progbar Whether a ProgbarLogger callback should be added, if one does not already exist in the callbacks list.
model The Model these callbacks are used with.
**params If provided, parameters will be passed to each Callback via Callback.set_params.

Methods

append

View source

on_batch_begin

View source

on_batch_end

View source

on_epoch_begin

View source

Calls the on_epoch_begin methods of its callbacks.

This function should only be called during TRAIN mode.

Args
epoch Integer, index of epoch.
logs Dict. Currently no data is passed to this argument for this method but that may change in the future.

on_epoch_end

View source

Calls the on_epoch_end methods of its callbacks.

This function should only be called during TRAIN mode.

Args
epoch Integer, index of epoch.
logs Dict, metric results for this training epoch, and for the validation epoch if validation is performed. Validation result keys are prefixed with val_.