docstr: ...Test that hawkes sumgaussians lasso_grouplasso_ratio parameter is 
  correctly linked
docstr_tok: ["...","Test","that","hawkes","sumgaussians","lasso_grouplasso_ratio","parameter","is","correctly","linked"]
code: def test_hawkes_sumgaussians_lasso_grouplasso_ratio_parameter(self):
      """...Test that hawkes sumgaussians lasso_grouplasso_ratio parameter is
      correctly linked
      """
      # First learner initialization
      C = 5e-3
      learner = HawkesSumGaussians(
          1, lasso_grouplasso_ratio=self.float_1, C=C
      )
      strength_lasso = self.float_1 / learner.C
      strength_grouplasso = (1.0 - self.float_1) / learner.C
      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.C, C)
  
      # change lasso_grouplasso_ratio
      learner.lasso_grouplasso_ratio = self.float_2
      strength_lasso = self.float_2 / learner.C
      strength_grouplasso = (1.0 - self.float_2) / learner.C
      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, self.float_2)
      self.assertEqual(learner.C, C)
  
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 5 for calling the Test obj's underlying member method code with example usage: obj.test_hawkes_sumgaussians_lasso_grouplasso_ratio_parameter() without return types