Spaces:
Running
Running
Zekun Wu
commited on
Commit
•
0bceca6
1
Parent(s):
100b807
update
Browse files- util/injection.py +2 -0
util/injection.py
CHANGED
@@ -117,6 +117,8 @@ def process_scores_multiple(df, num_run, parameters, privilege_label, protect_la
|
|
117 |
scores[key+"_characteristics"][index].append(result_charateristics)
|
118 |
scores[key+"_normal"][index].append(result_normal)
|
119 |
|
|
|
|
|
120 |
for category in ['Privilege_characteristics', 'Privilege_normal','Protect_characteristics', 'Protect_normal','Neutral_characteristics', 'Neutral_normal']:
|
121 |
df[f'{category}_Scores'] = pd.Series([lst for lst in scores[category]])
|
122 |
df[f'{category}_Avg_Score'] = df[f'{category}_Scores'].apply(
|
|
|
117 |
scores[key+"_characteristics"][index].append(result_charateristics)
|
118 |
scores[key+"_normal"][index].append(result_normal)
|
119 |
|
120 |
+
print(f"Scores: {scores}")
|
121 |
+
|
122 |
for category in ['Privilege_characteristics', 'Privilege_normal','Protect_characteristics', 'Protect_normal','Neutral_characteristics', 'Neutral_normal']:
|
123 |
df[f'{category}_Scores'] = pd.Series([lst for lst in scores[category]])
|
124 |
df[f'{category}_Avg_Score'] = df[f'{category}_Scores'].apply(
|