class_docstr: Base class of Hawkes models
  
  Notes
  -----
  This class should be not used by end-users, it is intended for
  development only.
class_docstr_tok: ["Base","class","of","Hawkes","models","Notes","--","--","-","This","class","should","be","not","used","by","end-users",",","it","is","intended","for","development","only","."]
docstr: Incrementally fit model with data by adding one Hawkes realization.
  
  Parameters
  ----------
  events : `list` of `np.ndarray`
      The events of each component of the realization. Namely
      `events[j]` contains a one-dimensional `np.ndarray` of
      the events' timestamps of component j
  
  end_time : `float`, default=None
      End time of the realization.
      If None, it will be set to realization's latest time.
  
  Notes
  -----
  Data is not stored, so this might be useful if the list of all
  realizations does not fit in memory
docstr_tok: ["Incrementally","fit","model","with","data","by","adding","one","Hawkes","realization",".","Parameters","--","--","--","--","--","events",":","`","list","`","of","`","np.ndarray","`","The","events","of","each","component","of","the","realization",".","Namely","`","events","[","j","]","`","contains","a","one-dimensional","`","np.ndarray","`","of","the","events","'","timestamps","of","component","j","end_time",":","`","float","`",",","default=None","End","time","of","the","realization",".","If","None",",","it","will","be","set","to","realization","'s","latest","time",".","Notes","--","--","-","Data","is","not","stored",",","so","this","might","be","useful","if","the","list","of","all","realizations","does","not","fit","in","memory"]
code: def incremental_fit(self, events, end_time=None):
      """Incrementally fit model with data by adding one Hawkes realization.
  
      Parameters
      ----------
      events : `list` of `np.ndarray`
          The events of each component of the realization. Namely
          `events[j]` contains a one-dimensional `np.ndarray` of
          the events' timestamps of component j
  
      end_time : `float`, default=None
          End time of the realization.
          If None, it will be set to realization's latest time.
  
      Notes
      -----
      Data is not stored, so this might be useful if the list of all
      realizations does not fit in memory
      """
      if end_time is None:
          end_time = max(map(max, events))
  
      self._model.incremental_set_data(events, end_time)
  
      self._set("_fitted", True)
      self._set(N_CALLS_LOSS, 0)
      self._set(PASS_OVER_DATA, 0)
  
file_path: tick/tick/hawkes/model/base/model_hawkes.py
imports: import numpy
  from scipy.sparse import sputils, csr_matrix
  from tick.base_model import N_CALLS_LOSS, PASS_OVER_DATA
  from tick.base_model.model_first_order import ModelFirstOrder
  from tick.hawkes.model.build.hawkes_model import ModelHawkesSumExpKernLeastSq, ModelHawkesExpKernLeastSq, ModelHawkesSumExpKernLogLik
label_desc: Use image node_id 5 for calling the ModelHawkes obj's underlying member method code with example usage: obj.incremental_fit(events, end_time) without return types