Create a custom callback
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_endexpect two positional arguments:
on_batch_endexpect two positional arguments:
on_train_endexpect one positional argument:
callback_lambda(on_epoch_begin = NULL, on_epoch_end = NULL, on_batch_begin = NULL, on_batch_end = NULL, on_train_begin = NULL, on_train_end = NULL)
called at the beginning of every epoch.
called at the end of every epoch.
called at the beginning of every batch.
called at the end of every batch.
called at the beginning of model training.
called at the end of model training.