'Called at the end of an epoch.
# Arguments
epoch: integer, index of epoch.
logs: dictionary of logs.'

def on_epoch_end(self, epoch, logs=None):

    logs = (logs or {})
    for callback in self.callbacks:
        callback.on_epoch_end(epoch, logs)
