docstr: ...Test simulation of a Cox Regression
          
docstr_tok: ["...","Test","simulation","of","a","Cox","Regression"]
code: def test_SimuCoxReg(self):
      """...Test simulation of a Cox Regression"""
      # Simulate a Cox model with specific seed
      n_samples = 10
      n_features = 3
      idx = np.arange(n_features)
      # Parameters of the Cox simu
      coeffs = np.exp(-idx / 10.0)
      coeffs[::2] *= -1
  
      seed = 123
      simu = SimuCoxReg(
          coeffs, n_samples=n_samples, seed=seed, verbose=False
      )
      features_, times_, censoring_ = simu.simulate()
  
      times = np.array(
          [
              1.5022119,
              5.93102441,
              6.82837051,
              0.50940341,
              0.14859682,
              30.22922996,
              3.54945974,
              0.8671229,
              1.4228358,
              0.11483298,
          ]
      )
  
      censoring = np.array(
          [1, 0, 1, 1, 1, 1, 1, 1, 0, 1], dtype=np.ushort
      )
  
      features = np.array(
          [
              [1.4912667, 0.80881799, 0.26977298],
              [1.23227551, 0.50697013, 1.9409132],
              [1.8891494, 1.49834791, 2.41445794],
              [0.19431319, 0.80245126, 1.02577552],
              [-1.61687582, -1.08411865, -0.83438387],
              [2.30419894, -0.68987056, -0.39750262],
              [-0.28826405, -1.23635074, -0.76124386],
              [-1.32869473, -1.8752391, -0.182537],
              [0.79464218, 0.65055633, 1.57572506],
              [0.71524202, 1.66759831, 0.88679047],
          ]
      )
  
      np.testing.assert_almost_equal(features, features_)
      np.testing.assert_almost_equal(times, times_)
      np.testing.assert_almost_equal(censoring, censoring_)
  
imports: import unittest
  import numpy
  from tick.survival import SimuCoxReg, SimuCoxRegWithCutPoints
label_desc: Use image node_id 1 for calling the Test obj's underlying member method code with example usage: obj.test_SimuCoxReg() without return types