docstr: ...Test set_data method of Hawkes ADM4
          
docstr_tok: ["...","Test","set_data","method","of","Hawkes","ADM4"]
code: def test_hawkes_adm4_set_data(self):
      """...Test set_data method of Hawkes ADM4"""
      events = [
          [
              np.array([1, 1.2, 3.4, 5.8, 10.3, 11, 13.4]),
              np.array([2, 5, 8.3, 9.10, 15, 18, 20, 33]),
          ],
          [
              np.array([2, 3.2, 11.4, 12.8, 45]),
              np.array([2, 3, 8.8, 9, 15.3, 19]),
          ],
      ]
  
      learner = HawkesADM4(1)
      learner._set_data(events)
      self.assertEqual(learner.n_nodes, 2)
  
      events = [
          np.array([1, 1.2, 3.4, 5.8, 10.3, 11, 13.4]),
          np.array([2, 5, 8.3, 9.10, 15, 18, 20, 33]),
      ]
  
      learner = HawkesADM4(1)
      learner._set_data(events)
      self.assertEqual(learner.n_nodes, 2)
  
      msg = (
          "All realizations should have 2 nodes, but realization 1 has "
          "1 nodes"
      )
      with self.assertRaisesRegex(RuntimeError, msg):
          events = [
              [
                  np.array([1, 1.2, 3.4, 5.8, 10.3, 11, 13.4]),
                  np.array([2, 5, 8.3, 9.10, 15, 18, 20, 33]),
              ],
              [np.array([2, 3.2, 11.4, 12.8, 45])],
          ]
          learner._set_data(events)
  
file_path: tick/tick/hawkes/inference/tests/hawkes_adm4_test.py
imports: import unittest
  import numpy
  from tick.hawkes import SimuHawkesExpKernels, SimuHawkesMulti
  from tick.hawkes.inference import HawkesADM4
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_adm4_set_data() without return types