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
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"]
code: def _set_data(self, events):
      """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
      """
      self._set("data", events)
      if len(events[0]) == 0 or not isinstance(
          events[0][0], np.ndarray
      ):
          events = [events]
  
      end_times = self._end_times
      if end_times is None:
          non_empty_events = [
              [r for r in e if len(r) > 0] for e in events
          ]
          end_times = np.array(
              [max(map(max, e)) for e in non_empty_events]
          )
  
      if isinstance(end_times, (int, float)):
          end_times = np.array([end_times], dtype=float)
  
      self._model.set_data(events, end_times)
  
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 4 for calling the ModelHawkes obj's underlying member method code with example usage: obj._set_data(events) without return types