class_docstr: Audit attack class. Generates poisoning, then runs auditing algorithm.
class_docstr_tok: ["Audit","attack","class",".","Generates","poisoning",",","then","runs","auditing","algorithm","."]
docstr: Get poisoning data.
docstr_tok: ["Get","poisoning","data","."]
code: def make_poisoning(self, pois_ct, attack_type, l2_norm=10):
      """Get poisoning data."""
      return attacks.make_many_poisoned_datasets(
          self.train_x,
          self.train_y,
          [pois_ct],
          attack=attack_type,
          l2_norm=l2_norm,
      )
  
file_path: privacy/research/audit_2020/audit.py
imports: import numpy
  from statsmodels.stats import proportion
  import attacks
label_desc: Use image node_id 2 for calling the AuditAttack obj's underlying member method code with example usage: obj.make_poisoning(pois_ct, attack_type, l2_norm) and returns: attacks