Zekun Wu commited on
Commit
ec0701e
1 Parent(s): 2286165
Files changed (1) hide show
  1. util/injection.py +3 -1
util/injection.py CHANGED
@@ -88,7 +88,9 @@ def process_scores_multiple(df, num_run, parameters, privilege_label, protect_la
88
 
89
  print(f"Processing {len(df)} entries with {num_run} runs each.")
90
  """ Process entries and compute scores concurrently, with progress updates. """
91
- scores = {key: [[] for _ in range(len(df))] for key in ['Privilege', 'Protect', 'Neutral']}
 
 
92
  print(f"Scores: {scores}")
93
 
94
  for run in tqdm(range(num_run), desc="Processing runs", unit="run"):
 
88
 
89
  print(f"Processing {len(df)} entries with {num_run} runs each.")
90
  """ Process entries and compute scores concurrently, with progress updates. """
91
+ scores = {key: [[] for _ in range(len(df))] for key in ['Privilege_characteristics', 'Privilege_normal',
92
+ 'Protect_characteristics', 'Protect_normal',
93
+ 'Neutral_characteristics', 'Neutral_normal']}
94
  print(f"Scores: {scores}")
95
 
96
  for run in tqdm(range(num_run), desc="Processing runs", unit="run"):