class_docstr: a class to represent a single clause/rule of the form:
  "IF <literal1> AND <literal2> AND ... <literal_k> THEN predict class = 0 or 1"
class_docstr_tok: ["a","class","to","represent","a","single","clause\/rule","of","the","form",":","''","IF","<","literal1",">","AND","<","literal2",">","AND","...","<","literal_k",">","THEN","predict","class","=","0","or","1","''"]
code: def check_equal_preds(self, rule2):
      preds1 = self.predicates
      preds2 = rule2.predicates
  
      if len(preds1) != len(preds2):
          return False
      for pred1 in preds1:
          if pred1 not in preds2:
              return False
  
      return True
  
file_path: AIX360/aix360/algorithms/imd/rule.py
imports: from dataclasses import dataclass
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling the Rule obj's underlying member method code with example usage: obj.check_equal_preds(rule2) and returns: True, False, False