class_docstr: Container abstracting a list of callbacks.
class_docstr_tok: ["Container","abstracting","a","list","of","callbacks","."]
docstr: Container for `Callback` instances.
  
  This object wraps a list of `Callback` instances, making it possible
  to call them all at once via a single endpoint
  (e.g. `callback_list.on_epoch_end(...)`).
  
  Args:
      callbacks: List of `Callback` instances.
      add_history: Whether a `History` callback should be added, if one
          does not already exist in the `callbacks` list.
      add_progbar: Whether a `ProgbarLogger` callback should be added, if
          one does not already exist in the `callbacks` list.
      model: The `Model` these callbacks are used with.
      **params: If provided, parameters will be passed to each `Callback`
          via `Callback.set_params`.
docstr_tok: ["Container","for","`","Callback","`","instances",".","This","object","wraps","a","list","of","`","Callback","`","instances",",","making","it","possible","to","call","them","all","at","once","via","a","single","endpoint","(","e.g",".","`","callback_list.on_epoch_end","(","...",")","`",")",".","Args",":","callbacks",":","List","of","`","Callback","`","instances",".","add_history",":","Whether","a","`","History","`","callback","should","be","added",",","if","one","does","not","already","exist","in","the","`","callbacks","`","list",".","add_progbar",":","Whether","a","`","ProgbarLogger","`","callback","should","be","added",",","if","one","does","not","already","exist","in","the","`","callbacks","`","list",".","model",":","The","`","Model","`","these","callbacks","are","used","with",".","*","*","params",":","If","provided",",","parameters","will","be","passed","to","each","`","Callback","`","via","`","Callback.set_params","`","."]
code: def __init__(
      self,
      callbacks=None,
      add_history=False,
      add_progbar=False,
      model=None,
      **params,
  ):
      """Container for `Callback` instances.
  
      This object wraps a list of `Callback` instances, making it possible
      to call them all at once via a single endpoint
      (e.g. `callback_list.on_epoch_end(...)`).
  
      Args:
          callbacks: List of `Callback` instances.
          add_history: Whether a `History` callback should be added, if one
              does not already exist in the `callbacks` list.
          add_progbar: Whether a `ProgbarLogger` callback should be added, if
              one does not already exist in the `callbacks` list.
          model: The `Model` these callbacks are used with.
          **params: If provided, parameters will be passed to each `Callback`
              via `Callback.set_params`.
      """
      self.callbacks = tree.flatten(callbacks) if callbacks else []
      self._add_default_callbacks(add_history, add_progbar)
  
      if model:
          self.set_model(model)
      if params:
          self.set_params(params)
  
imports: import tree
  from keras.api_export import keras_export
  from keras.callbacks.callback import Callback
  from keras.callbacks.history import History
  from keras.callbacks.progbar_logger import ProgbarLogger
label_desc: Use image node_id 1 to create a new CallbackList object from inherited base classes: Callback with example: obj = CallbackList(callbacks, add_history, add_progbar, model)