LostTech.TensorFlow : API Documentation

Type ICallback

Namespace tensorflow.keras.callbacks

Interfaces IPythonObjectContainer

Public instance methods

object on_batch_begin(object batch, object logs)

object on_batch_end(object batch, object logs)

object on_epoch_begin(object epoch, object logs)

object on_epoch_end(object epoch, object logs)

object on_test_batch_begin(object batch, object logs)

Called at the beginning of a batch in `evaluate` methods.

Also called at the beginning of a validation batch in the `fit` methods, if validation data is provided.

Subclasses should override for any actions to run.
Parameters
object batch
integer, index of batch within the current epoch.
object logs
dict. Has keys `batch` and `size` representing the current batch number and the size of the batch.

object on_test_batch_end(object batch, object logs)

Called at the end of a batch in `evaluate` methods.

Also called at the end of a validation batch in the `fit` methods, if validation data is provided.

Subclasses should override for any actions to run.
Parameters
object batch
integer, index of batch within the current epoch.
object logs
dict. Metric results for this batch.

object on_train_batch_begin(object batch, object logs)

Called at the beginning of a training batch in `fit` methods.

Subclasses should override for any actions to run.
Parameters
object batch
integer, index of batch within the current epoch.
object logs
dict. Has keys `batch` and `size` representing the current batch number and the size of the batch.

object on_train_batch_end(object batch, object logs)

Called at the end of a training batch in `fit` methods.

Subclasses should override for any actions to run.
Parameters
object batch
integer, index of batch within the current epoch.
object logs
dict. Metric results for this batch.

object on_train_begin(object logs)

object on_train_end(object logs)