docstr: ...Test HawkesSumExpKern setting of parameters
  of model
docstr_tok: ["...","Test","HawkesSumExpKern","setting","of","parameters","of","model"]
code: def test_HawkesSumExpKern_model_settings(self):
      """...Test HawkesSumExpKern setting of parameters
      of model
      """
      # Single baseline
      learner = HawkesSumExpKern(self.decays)
      np.testing.assert_array_equal(learner.decays, self.decays)
      np.testing.assert_array_equal(
          learner._model_obj.decays, self.decays
      )
      self.assertEqual(learner.n_baselines, 1)
      self.assertIsNone(learner.period_length)
  
      # Multiple baselines
      n_baselines = 3
      period_length = 2.0
      learner = HawkesSumExpKern(
          self.decays,
          n_baselines=n_baselines,
          period_length=period_length,
      )
      self.assertEqual(learner.n_baselines, n_baselines)
      self.assertEqual(learner._model_obj.n_baselines, n_baselines)
      self.assertEqual(learner.period_length, period_length)
      self.assertEqual(learner._model_obj.period_length, period_length)
  
      msg = "decays is readonly in HawkesSumExpKern"
      with self.assertRaisesRegex(AttributeError, msg):
          learner.decays = self.decays + 1
      msg = "n_baselines is readonly in HawkesSumExpKern"
      with self.assertRaisesRegex(AttributeError, msg):
          learner.n_baselines = n_baselines + 1
      msg = "period_length is readonly in HawkesSumExpKern"
      with self.assertRaisesRegex(AttributeError, msg):
          learner.period_length = period_length + 1
  
      msg = "You must fit data before getting estimated baseline"
      with self.assertRaisesRegex(ValueError, msg):
          learner.baseline
      msg = "You must fit data before getting estimated adjacency"
      with self.assertRaisesRegex(ValueError, msg):
          learner.adjacency
  
imports: import unittest
  import numpy
  from tick.base.inference import InferenceTest
  from tick.hawkes import SimuHawkesSumExpKernels, SimuHawkesMulti
  from tick.hawkes.inference import HawkesSumExpKern
  from tick.prox import ProxNuclear
  from tick.prox import ProxPositive, ProxL1, ProxL2Sq, ProxElasticNet
  from tick.solver import AGD, GD, BFGS, SGD, SVRG
label_desc: Use image node_id 11 for calling the Test obj's underlying member method code with example usage: obj.test_HawkesSumExpKern_model_settings() without return types