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: Set the corresponding realization(s) of the process.
  
  Parameters
  ----------
  events : `list` of `list` of `np.ndarray`
      List of Hawkes processes realizations.
      Each realization of the Hawkes process is a list of n_node for
      each component of the Hawkes. Namely `events[i][j]` contains a
      one-dimensional `numpy.array` of the events' timestamps of
      component j of realization i.
      If only one realization is given, it will be wrapped into a list
  
  end_times : `np.ndarray` or `float`, default = None
      List of end time of all hawkes processes that will be given to the
      model. If None, it will be set to each realization's latest time.
      If only one realization is provided, then a float can be given.
docstr_tok: ["Set","the","corresponding","realization","(","s",")","of","the","process",".","Parameters","--","--","--","--","--","events",":","`","list","`","of","`","list","`","of","`","np.ndarray","`","List","of","Hawkes","processes","realizations",".","Each","realization","of","the","Hawkes","process","is","a","list","of","n_node","for","each","component","of","the","Hawkes",".","Namely","`","events","[","i","]","[","j","]","`","contains","a","one-dimensional","`","numpy.array","`","of","the","events","'","timestamps","of","component","j","of","realization","i",".","If","only","one","realization","is","given",",","it","will","be","wrapped","into","a","list","end_times",":","`","np.ndarray","`","or","`","float","`",",","default","=","None","List","of","end","time","of","all","hawkes","processes","that","will","be","given","to","the","model",".","If","None",",","it","will","be","set","to","each","realization","'s","latest","time",".","If","only","one","realization","is","provided",",","then","a","float","can","be","given","."]
code: def fit(self, data, end_times=None):
      """Set the corresponding realization(s) of the process.
  
      Parameters
      ----------
      events : `list` of `list` of `np.ndarray`
          List of Hawkes processes realizations.
          Each realization of the Hawkes process is a list of n_node for
          each component of the Hawkes. Namely `events[i][j]` contains a
          one-dimensional `numpy.array` of the events' timestamps of
          component j of realization i.
          If only one realization is given, it will be wrapped into a list
  
      end_times : `np.ndarray` or `float`, default = None
          List of end time of all hawkes processes that will be given to the
          model. If None, it will be set to each realization's latest time.
          If only one realization is provided, then a float can be given.
      """
      self._set("_end_times", end_times)
      return ModelFirstOrder.fit(self, data)
  
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 3 for calling the ModelHawkes obj's underlying member method code with example usage: obj.fit(data, end_times) and returns: ModelFirstOrder