docstr: ...Test that Hawkes em kernel size parameter is correctly
  synchronized
docstr_tok: ["...","Test","that","Hawkes","em","kernel","size","parameter","is","correctly","synchronized"]
code: def test_hawkes_em_kernel_size(self):
      """...Test that Hawkes em kernel size parameter is correctly
      synchronized
      """
      kernel_size_1 = 4
      learner = HawkesEM(4.0, kernel_size=kernel_size_1)
      self.assertEqual(learner.kernel_size, kernel_size_1)
      self.assertEqual(
          learner._learner.get_kernel_size(), kernel_size_1
      )
      expected_kernel_discretization = [0.0, 1.0, 2.0, 3.0, 4.0]
      np.testing.assert_array_almost_equal(
          learner.kernel_discretization, expected_kernel_discretization
      )
  
      kernel_size_2 = 5
      learner.kernel_size = kernel_size_2
      self.assertEqual(learner.kernel_size, kernel_size_2)
      self.assertEqual(
          learner._learner.get_kernel_size(), kernel_size_2
      )
      expected_kernel_discretization = [0.0, 0.8, 1.6, 2.4, 3.2, 4]
      np.testing.assert_array_almost_equal(
          learner.kernel_discretization, expected_kernel_discretization
      )
  
imports: import unittest
  import numpy
  from tick.hawkes.inference import HawkesEM
  from tick.hawkes.model.tests.model_hawkes_test_utils import hawkes_intensities, hawkes_log_likelihood
  from tick.hawkes import SimuHawkes, HawkesKernelTimeFunc, HawkesKernelExp, SimuHawkesExpKernels
  from tick.base import TimeFunction
label_desc: Use image node_id 9 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_em_kernel_size() without return types