class_docstr: Callback that records events into a `History` object.
  
  This callback is automatically applied to
  every Keras model. The `History` object
  gets returned by the `fit` method of models.
class_docstr_tok: ["Callback","that","records","events","into","a","`","History","`","object",".","This","callback","is","automatically","applied","to","every","Keras","model",".","The","`","History","`","object","gets","returned","by","the","`","fit","`","method","of","models","."]
code: def on_epoch_end(self, epoch, logs=None):
      logs = logs or {}
      self.epoch.append(epoch)
      for k, v in logs.items():
          self.history.setdefault(k, []).append(v)
  
      # Set the history attribute on the model after the epoch ends. This will
      # make sure that the state which is set is the latest one.
      self.model.history = self
  
imports: from .callback import Callback
label_desc: Use image node_id 3 for calling the History obj's underlying member method code with example usage: obj.on_epoch_end(epoch, logs) without return types