class_docstr: A class to store and visualize the resulting counterfactual explanations.
class_docstr_tok: ["A","class","to","store","and","visualize","the","resulting","counterfactual","explanations","."]
code: def __eq__(self, other_counterfactual_example):
      if isinstance(
          other_counterfactual_example, CounterfactualExamples
      ):
          return (
              self.desired_class
              == other_counterfactual_example.desired_class
              and self.desired_range
              == other_counterfactual_example.desired_range
              and self.model_type
              == other_counterfactual_example.model_type
              and (self.final_cfs_df is None)
              == (other_counterfactual_example.final_cfs_df is None)
              and (self.final_cfs_df_sparse is None)
              == (
                  other_counterfactual_example.final_cfs_df_sparse
                  is None
              )
          )
      return False
  
imports: import copy
  import json
  import math
  import numpy
  import pandas
  from dice_ml.constants import ModelTypes, _SchemaVersions
  from dice_ml.utils.serialize import DummyDataInterface
label_desc: Use image node_id 2 for calling the CounterfactualExamples obj's underlying member method code with example usage: obj.__eq__(other_counterfactual_example) and returns: False, unknown