class_docstr: Implements methods for finding optimal (efficient) backdoor sets.
class_docstr_tok: ["Implements","methods","for","finding","optimal","(","efficient",")","backdoor","sets","."]
docstr: Method to compute the set of ignorable vertices with respect to
   treatment, outcome, conditional and observable variables.
   Used in the construction of the H0 and H1 graphs. See Smucler,
   Sapienza and Rotnitzky (2021), Biometrika, for the full definition
   of this set.
  
  :returns ignore: set
      The set of ignorable vertices.
docstr_tok: ["Method","to","compute","the","set","of","ignorable","vertices","with","respect","to","treatment",",","outcome",",","conditional","and","observable","variables",".","Used","in","the","construction","of","the","H0","and","H1","graphs",".","See","Smucler",",","Sapienza","and","Rotnitzky","(","2021",")",",","Biometrika",",","for","the","full","definition","of","this","set",".",":","returns","ignore",":","set","The","set","of","ignorable","vertices","."]
code: def ignore(self):
      """Method to compute the set of ignorable vertices with respect to
       treatment, outcome, conditional and observable variables.
       Used in the construction of the H0 and H1 graphs. See Smucler,
       Sapienza and Rotnitzky (2021), Biometrika, for the full definition
       of this set.
  
      :returns ignore: set
          The set of ignorable vertices.
      """
      set1 = set(
          self.ancestors_all(
              self.conditional_node_names
              + [self.treatment_name, self.outcome_name]
          )
      )
      set1.remove(self.treatment_name)
      set1.remove(self.outcome_name)
  
      set2 = set(self.graph.nodes()) - self.observed_nodes
      set2 = set2.union(self.forbidden())
  
      ignore = set1.intersection(set2)
  
      return ignore
  
file_path: dowhy/dowhy/causal_identifier/efficient_backdoor.py
imports: from typing import List
  import networkx
  import numpy
label_desc: Use image node_id 6 for calling the EfficientBackdoor obj's underlying member method code with example usage: obj.ignore() and returns: ignore