docstr: ...Test that hawkes sumgaussians C parameter is correctly linked
          
docstr_tok: ["...","Test","that","hawkes","sumgaussians","C","parameter","is","correctly","linked"]
code: def test_hawkes_sumgaussians_C_parameter(self):
      """...Test that hawkes sumgaussians C parameter is correctly linked"""
      # First leaner initialization
      lasso_grouplasso_ratio = 0.3
      learner = HawkesSumGaussians(
          1,
          C=self.float_1,
          lasso_grouplasso_ratio=lasso_grouplasso_ratio,
      )
      strength_lasso = learner.lasso_grouplasso_ratio / self.float_1
      strength_grouplasso = (
          1.0 - learner.lasso_grouplasso_ratio
      ) / self.float_1
      self.assertEqual(learner.strength_lasso, strength_lasso)
      self.assertEqual(learner.strength_grouplasso, strength_grouplasso)
      self.assertEqual(
          learner._learner.get_strength_lasso(), strength_lasso
      )
      self.assertEqual(
          learner._learner.get_strength_grouplasso(),
          strength_grouplasso,
      )
      self.assertEqual(
          learner.lasso_grouplasso_ratio, lasso_grouplasso_ratio
      )
  
      # Change C
      learner.C = self.float_2
      strength_lasso = learner.lasso_grouplasso_ratio / self.float_2
      strength_grouplasso = (
          1.0 - learner.lasso_grouplasso_ratio
      ) / self.float_2
      self.assertEqual(learner.strength_lasso, strength_lasso)
      self.assertEqual(learner.strength_grouplasso, strength_grouplasso)
      self.assertEqual(
          learner._learner.get_strength_lasso(), strength_lasso
      )
      self.assertEqual(
          learner._learner.get_strength_grouplasso(),
          strength_grouplasso,
      )
      self.assertAlmostEqual(learner.C, self.float_2)
      self.assertEqual(
          learner.lasso_grouplasso_ratio, lasso_grouplasso_ratio
      )
  
file_path: tick/tick/hawkes/inference/tests/hawkes_sumgaussians_test.py
imports: import unittest
  import numpy
  from tick.hawkes.inference import HawkesSumGaussians
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_sumgaussians_C_parameter() without return types