Type BaseLogger
Namespace tensorflow.keras.callbacks
Parent Callback
Interfaces IBaseLogger
Callback that accumulates epoch averages of metrics. This callback is automatically applied to every Keras model.
Methods
- on_predict_batch_begin
- on_predict_batch_begin_dyn
- on_predict_batch_end
- on_predict_batch_end_dyn
- on_predict_begin
- on_predict_begin_dyn
- on_predict_end
- on_predict_end_dyn
- on_test_begin
- on_test_begin_dyn
- on_test_end
- on_test_end_dyn
- on_train_begin
- on_train_begin_dyn
- on_train_end
- on_train_end_dyn
Properties
Public instance methods
void on_predict_batch_begin(object batch, object logs)
Called at the beginning of a batch in `predict` 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_predict_batch_begin_dyn(object batch, object logs)
Called at the beginning of a batch in `predict` 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.
void on_predict_batch_end(object batch, object logs)
Called at the end of a batch in `predict` 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_predict_batch_end_dyn(object batch, object logs)
Called at the end of a batch in `predict` 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.
void on_predict_begin(object logs)
Called at the beginning of prediction. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
object on_predict_begin_dyn(object logs)
Called at the beginning of prediction. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
void on_predict_end(object logs)
Called at the end of prediction. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
object on_predict_end_dyn(object logs)
Called at the end of prediction. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
void on_test_begin(object logs)
Called at the beginning of evaluation or validation. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
object on_test_begin_dyn(object logs)
Called at the beginning of evaluation or validation. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
void on_test_end(object logs)
Called at the end of evaluation or validation. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
object on_test_end_dyn(object logs)
Called at the end of evaluation or validation. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
void on_train_begin(IDictionary<string, object> logs)
Called at the beginning of training. Subclasses should override for any actions to run.
Parameters
-
IDictionary<string, object>
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
object on_train_begin_dyn(object logs)
Called at the beginning of training. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
void on_train_end(IDictionary<string, object> logs)
Called at the end of training. Subclasses should override for any actions to run.
Parameters
-
IDictionary<string, object>
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.
object on_train_end_dyn(object logs)
Called at the end of training. Subclasses should override for any actions to run.
Parameters
-
object
logs - dict. Currently no data is passed to this argument for this method but that may change in the future.