We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c711964 commit e73b1ccCopy full SHA for e73b1cc
analyze_agentlab_results/summarize_study.py
@@ -181,7 +181,10 @@ def read_penalties_data(subdir):
181
with open(penalties_path, "r") as f:
182
reader = csv.DictReader(f)
183
for row in reader:
184
- penalty_data["penalty"] = float(row.get("penalty", 0))
+ penalty_value = row.get("penalty", 0)
185
+ penalty_data["penalty"] = (
186
+ float(penalty_value) if penalty_value not in ["None"] else 0.0
187
+ )
188
wrong_solutions_str = row.get("wrong_solutions", "")
189
if wrong_solutions_str:
190
penalty_data["wrong_solutions"] = wrong_solutions_str.split("|")
0 commit comments