docstr: ...Test that SDCA's rand_max is worrect depending on link type
          
docstr_tok: ["...","Test","that","SDCA","'s","rand_max","is","worrect","depending","on","link","type"]
code: def test_poisreg_sdca_rand_max(self):
      """...Test that SDCA's rand_max is worrect depending on link type"""
      labels = np.array([0, 1, 2, 0, 4], dtype=self.dtype)
      features = np.random.rand(len(labels), 3).astype(self.dtype)
  
      model = ModelPoisReg(link="exponential").fit(features, labels)
      with self.assertRaises(NotImplementedError):
          model._sdca_rand_max
      self.assertEqual(model._rand_max, 5)
  
      model = ModelPoisReg(link="identity").fit(features, labels)
      self.assertEqual(model._sdca_rand_max, 3)
      self.assertEqual(model._rand_max, 5)
  
file_path: tick/tick/linear_model/tests/model_poisreg_test.py
imports: import unittest
  import numpy
  from scipy.sparse import csr_matrix
  from tick.linear_model import SimuPoisReg, ModelPoisReg
  from tick.base_model.tests.generalized_linear_model import TestGLM
label_desc: Use image node_id 2 for calling the ModelPoisRegTest obj's underlying member method code with example usage: obj.test_poisreg_sdca_rand_max() without return types