class_docstr: Tests for summary encoder.
docstr: Given a quantile, compares if the summary encoder and the quantile encoder provide the same results
docstr_tok: ["Given","a","quantile",",","compares","if","the","summary","encoder","and","the","quantile","encoder","provide","the","same","results"]
code: def assert_same_quantile(self, quantile):
      """
      Given a quantile, compares if the summary encoder and the quantile encoder provide the same results
  
      """
  
      quantile_results = encoders.QuantileEncoder(
          cols=[self.col], quantile=quantile
      ).fit_transform(self.df, self.target)
  
      summary_results = encoders.SummaryEncoder(
          cols=[self.col], quantiles=[quantile]
      ).fit_transform(self.df, self.target)
  
      percentile = round(quantile * 100)
      col_name = str(self.col) + "_" + str(percentile)
      np.testing.assert_allclose(
          quantile_results[self.col].values,
          summary_results[col_name].values,
      )
  
file_path: category_encoders/tests/test_quantile_encoder.py
imports: import unittest
  import pandas
  import category_encoders
  import numpy
label_desc: Use image node_id 2 for calling the TestSummaryEncoder obj's underlying member method code with example usage: obj.assert_same_quantile(quantile) without return types