merlin.dataloader.tensorflow.KerasSequenceValidater

class merlin.dataloader.tensorflow.KerasSequenceValidater(dataloader)[source]

Bases: keras.src.callbacks.Callback

__init__(dataloader)[source]

Methods

__init__(dataloader)

on_batch_begin(batch[, logs])

A backwards compatibility alias for on_train_batch_begin.

on_batch_end(batch[, logs])

A backwards compatibility alias for on_train_batch_end.

on_epoch_begin(epoch[, logs])

Called at the start of an epoch.

on_epoch_end(epoch[, logs])

Callback that runs at the end of an epoch.

on_predict_batch_begin(batch[, logs])

Called at the beginning of a batch in predict methods.

on_predict_batch_end(batch[, logs])

Called at the end of a batch in predict methods.

on_predict_begin([logs])

Called at the beginning of prediction.

on_predict_end([logs])

Called at the end of prediction.

on_test_batch_begin(batch[, logs])

Called at the beginning of a batch in evaluate methods.

on_test_batch_end(batch[, logs])

Called at the end of a batch in evaluate methods.

on_test_begin([logs])

Called at the beginning of evaluation or validation.

on_test_end([logs])

Called at the end of evaluation or validation.

on_train_batch_begin(batch[, logs])

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

on_train_batch_end(batch[, logs])

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

on_train_begin([logs])

Called at the beginning of training.

on_train_end([logs])

Called at the end of training.

set_model(model)

set_params(params)

on_epoch_end(epoch, logs=None)[source]

Callback that runs at the end of an epoch.

Parameters
  • epoch (int) – Integer representing the current epoch.

  • logs (Dict, optional) – dictionary of logs collected, to be added to, by default None

Returns

Dictionary with results from callback.

Return type

logs