class_docstr: Audit attack class. Generates poisoning, then runs auditing algorithm.
class_docstr_tok: ["Audit","attack","class",".","Generates","poisoning",",","then","runs","auditing","algorithm","."]
docstr: train_x: training features
  train_y: training labels
  name: identifier for the attack
  train_function: function returning membership score
docstr_tok: ["train_x",":","training","features","train_y",":","training","labels","name",":","identifier","for","the","attack","train_function",":","function","returning","membership","score"]
code: def __init__(self, train_x, train_y, train_function):
      """
      train_x: training features
      train_y: training labels
      name: identifier for the attack
      train_function: function returning membership score
      """
      self.train_x, self.train_y = train_x, train_y
      self.train_function = train_function
      self.poisoning = None
  
file_path: privacy/research/audit_2020/audit.py
imports: import numpy
  from statsmodels.stats import proportion
  import attacks
label_desc: Use image node_id 1 to create a new AuditAttack object from inherited base classes: object with example: obj = AuditAttack(train_x, train_y, train_function)