docstr: ...Test binarizer fit
          
docstr_tok: ["...","Test","binarizer","fit"]
code: def test_binarizer_fit(self):
      """...Test binarizer fit"""
      n_cuts = 3
      enc = OneHotEncoder(sparse=True)
      expected_binarization = enc.fit_transform(
          self.default_expected_intervals
      )
  
      binarizer = FeaturesBinarizer(
          method="quantile",
          n_cuts=n_cuts,
          detect_column_type="auto",
          remove_first=False,
      )
      # for pandas dataframe
      binarizer.fit(self.df_features)
      binarized_df = binarizer.transform(self.df_features)
      self.assertEqual(binarized_df.__class__, csr.csr_matrix)
  
      np.testing.assert_array_equal(
          expected_binarization.toarray(), binarized_df.toarray()
      )
      # for numpy array
      binarizer.fit(self.features)
      binarized_array = binarizer.transform(self.features)
      self.assertEqual(binarized_array.__class__, csr.csr_matrix)
  
      np.testing.assert_array_equal(
          expected_binarization.toarray(), binarized_array.toarray()
      )
  
      # test fit_transform
      binarized_array = binarizer.fit_transform(self.features)
      self.assertEqual(binarized_array.__class__, csr.csr_matrix)
  
      np.testing.assert_array_equal(
          expected_binarization.toarray(), binarized_array.toarray()
      )
  
file_path: tick/tick/preprocessing/tests/features_binarizer_test.py
imports: import unittest
  import numpy
  import pandas
  from sklearn.preprocessing import OneHotEncoder
  from scipy.sparse import csr
  from tick.preprocessing.features_binarizer import FeaturesBinarizer
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.test_binarizer_fit() without return types