docstr: ...Test that Hawkes em kernel support parameter is correctly
  synchronized
docstr_tok: ["...","Test","that","Hawkes","em","kernel","support","parameter","is","correctly","synchronized"]
code: def test_hawkes_em_kernel_support(self):
      """...Test that Hawkes em kernel support parameter is correctly
      synchronized
      """
      kernel_support_1 = 4.4
      learner = HawkesEM(kernel_support_1)
      self.assertEqual(learner.kernel_support, kernel_support_1)
      self.assertEqual(
          learner._learner.get_kernel_support(), kernel_support_1
      )
      expected_kernel_discretization = [
          0.0,
          0.44,
          0.88,
          1.32,
          1.76,
          2.2,
          2.64,
          3.08,
          3.52,
          3.96,
          4.4,
      ]
      np.testing.assert_array_almost_equal(
          learner.kernel_discretization, expected_kernel_discretization
      )
  
      kernel_support_2 = 6.2
      learner.kernel_support = kernel_support_2
      self.assertEqual(learner.kernel_support, kernel_support_2)
      self.assertEqual(
          learner._learner.get_kernel_support(), kernel_support_2
      )
  
      expected_kernel_discretization = [
          0.0,
          0.62,
          1.24,
          1.86,
          2.48,
          3.1,
          3.72,
          4.34,
          4.96,
          5.58,
          6.2,
      ]
      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 8 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_em_kernel_support() without return types