Type LambdaCallback
Namespace tensorflow.keras.callbacks
Parent Callback
Interfaces ILambdaCallback
Callback for creating simple, custom callbacks on-the-fly. This callback is constructed with anonymous functions that will be called
at the appropriate time. Note that the callbacks expects positional
arguments, as: - `on_epoch_begin` and `on_epoch_end` expect two positional arguments:
`epoch`, `logs`
- `on_batch_begin` and `on_batch_end` expect two positional arguments:
`batch`, `logs`
- `on_train_begin` and `on_train_end` expect one positional argument:
`logs`
Methods
Properties
Public static methods
LambdaCallback NewDyn(object on_epoch_begin, object on_epoch_end, object on_batch_begin, object on_batch_end, object on_train_begin, object on_train_end, IDictionary<string, object> kwargs)
Initialize self. See help(type(self)) for accurate signature.
Public properties
object model get; set;
object on_batch_begin get; set;
A backwards compatibility alias for `on_train_batch_begin`.
object on_batch_end get; set;
A backwards compatibility alias for `on_train_batch_end`.
object on_epoch_begin get; set;
Called at the start of an epoch. Subclasses should override for any actions to run. This function should only
be called during TRAIN mode.
object on_epoch_end get; set;
Called at the end of an epoch. Subclasses should override for any actions to run. This function should only
be called during TRAIN mode.
object on_train_begin get; set;
Called at the beginning of training. Subclasses should override for any actions to run.
object on_train_end get; set;
Called at the end of training. Subclasses should override for any actions to run.