class_docstr: Test methods common to Public and Private data interfaces modules.
docstr: Tests method that converts continuous features into [0,1] range and one-hot encodes categorical features.
code: def test_ohe_min_max_transformed_query_instance(
      self, sample_adultincome_query
  ):
      """
      Tests method that converts continuous features into [0,1] range and one-hot encodes categorical features.
      """
      output_query = [
          0.068,
          0.449,
          0.0,
          0.0,
          1.0,
          0.0,
          0.0,
          0.0,
          0.0,
          1.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          1.0,
          0.0,
          0.0,
          0.0,
          0.0,
          0.0,
          1.0,
          0.0,
          0.0,
          1.0,
          1.0,
          0.0,
      ]
      d = self.d[0]
      prepared_query = (
          d.get_ohe_min_max_normalized_data(
              query_instance=sample_adultincome_query
          )
          .iloc[0]
          .tolist()
      )
      assert output_query == pytest.approx(prepared_query, abs=1e-3)
  
file_path: DiCE/tests/test_data.py
imports: import pytest
  import dice_ml
label_desc: Use image node_id 3 for calling the TestCommonDataMethods obj's underlying member method code with example usage: obj.test_ohe_min_max_transformed_query_instance(sample_adultincome_query) without return types