class_docstr: Audit attack class. Generates poisoning, then runs auditing algorithm.
class_docstr_tok: ["Audit","attack","class",".","Generates","poisoning",",","then","runs","auditing","algorithm","."]
docstr: Runs all training experiments.
docstr_tok: ["Runs","all","training","experiments","."]
code: def run_experiments(self, num_trials):
      """Runs all training experiments."""
      (pois_x1, pois_y1), (pois_x2, pois_y2) = self.poisoning["data"]
      sample_x, sample_y = self.poisoning["pois"]
  
      poison_scores = []
      unpois_scores = []
  
      for i in range(num_trials):
          poison_tuple = (pois_x1, pois_y1, sample_x, sample_y, i)
          unpois_tuple = (
              pois_x2,
              pois_y2,
              sample_x,
              sample_y,
              num_trials + i,
          )
          poison_scores.append(self.train_function(poison_tuple))
          unpois_scores.append(self.train_function(unpois_tuple))
  
      return poison_scores, unpois_scores
  
file_path: privacy/research/audit_2020/audit.py
imports: import numpy
  from statsmodels.stats import proportion
  import attacks
label_desc: Use image node_id 3 for calling the AuditAttack obj's underlying member method code with example usage: obj.run_experiments(num_trials) and returns: poison_scores,  unpois_scores