docstr: ...Test that loss is still consistent after decays modification in
  ModelHawkesSumExpKernLogLik
docstr_tok: ["...","Test","that","loss","is","still","consistent","after","decays","modification","in","ModelHawkesSumExpKernLogLik"]
code: def test_model_hawkes_loglik_change_decays(self):
      """...Test that loss is still consistent after decays modification in
      ModelHawkesSumExpKernLogLik
      """
      decays = np.random.rand(self.n_decays + 1)
  
      model_change_decay = ModelHawkesSumExpKernLogLik(decays)
      model_change_decay.fit(self.timestamps_list)
  
      coeffs = np.random.rand(model_change_decay.n_coeffs)
      loss_old_decay = model_change_decay.loss(coeffs)
  
      model_change_decay.decays = self.decays
  
      self.assertNotEqual(
          loss_old_decay, model_change_decay.loss(self.coeffs)
      )
  
      self.assertEqual(
          self.model_list.loss(self.coeffs),
          model_change_decay.loss(self.coeffs),
      )
  
file_path: tick/tick/hawkes/model/tests/model_hawkes_sumexpkern_loglik_test.py
imports: import unittest
  import numpy
  from scipy.optimize import check_grad
  from tick.hawkes.model import ModelHawkesSumExpKernLogLik
  from tick.hawkes.model.tests.model_hawkes_test_utils import hawkes_log_likelihood, hawkes_sumexp_kernel_intensities
label_desc: Use image node_id 8 for calling the Test obj's underlying member method code with example usage: obj.test_model_hawkes_loglik_change_decays() without return types