docstr: Test serialization (cereal/pickle) of SCCS.
docstr_tok: ["Test","serialization","(","cereal\/pickle",")","of","SCCS","."]
code: def test_sccs_serialize_and_compare(self):
      """Test serialization (cereal/pickle) of SCCS."""
      X = [
          np.array([[0, 0, 1], [0, 1, 1], [1, 1, 1]], dtype="float64"),
          np.array([[0, 1, 1], [0, 1, 1], [1, 1, 1]], dtype="float64"),
      ]
      y = [
          np.array([0, 1, 0], dtype="int32"),
          np.array([0, 1, 0], dtype="int32"),
      ]
      n_lags = np.repeat(1, 3).astype(dtype="uint64")
      X, _, _ = LongitudinalFeaturesLagger(n_lags=n_lags).fit_transform(
          X
      )
      model = ModelSCCS(n_intervals=3, n_lags=n_lags).fit(X, y)
  
      pickled = pickle.loads(pickle.dumps(model))
  
      self.assertTrue(model._model.compare(pickled._model))
  
file_path: tick/tick/survival/tests/model_sccs_test.py
imports: import unittest, pickle
  import numpy
  from scipy.optimize import check_grad, fmin_bfgs
  from scipy.linalg import norm
  from scipy.sparse import csr_matrix
  from tick.survival import SimuSCCS, ModelSCCS
  from tick.preprocessing import LongitudinalFeaturesLagger
  from tick.solver import SVRG
  from tick.prox import ProxZero
label_desc: Use image node_id 9 for calling the ModelSCCSTest obj's underlying member method code with example usage: obj.test_sccs_serialize_and_compare() without return types