Spaces:
Sleeping
Sleeping
Commit Β·
49552e4
1
Parent(s): 265556a
fixed
Browse files- env/graders.py +3 -3
env/graders.py
CHANGED
|
@@ -197,7 +197,7 @@ def grade_easy(action: Action, ground_truth: dict) -> tuple[float, dict, str]:
|
|
| 197 |
# ββ 6. Hint penalty ββββββββββββββββββββββββββββββββββββββββββ
|
| 198 |
# Hint penalty is applied in reward.py, not here
|
| 199 |
|
| 200 |
-
final_score = round(min(score,
|
| 201 |
feedback = " ".join(feedback_parts) if feedback_parts else "No valid response provided."
|
| 202 |
return final_score, breakdown, feedback
|
| 203 |
|
|
@@ -288,7 +288,7 @@ def grade_medium(action: Action, ground_truth: dict) -> tuple[float, dict, str]:
|
|
| 288 |
else:
|
| 289 |
breakdown["impact_analysis"] = 0.0
|
| 290 |
|
| 291 |
-
final_score = round(min(score,
|
| 292 |
feedback = " ".join(feedback_parts) if feedback_parts else "No valid response provided."
|
| 293 |
return final_score, breakdown, feedback
|
| 294 |
|
|
@@ -399,7 +399,7 @@ def grade_hard(action: Action, ground_truth: dict) -> tuple[float, dict, str]:
|
|
| 399 |
|
| 400 |
# Hard cap: frontier model should score ~0.10-0.20
|
| 401 |
# We do NOT artificially cap β the rubric naturally produces low scores
|
| 402 |
-
final_score = round(min(score,
|
| 403 |
feedback = " ".join(feedback_parts) if feedback_parts else "Performance issue not identified."
|
| 404 |
return final_score, breakdown, feedback
|
| 405 |
|
|
|
|
| 197 |
# ββ 6. Hint penalty ββββββββββββββββββββββββββββββββββββββββββ
|
| 198 |
# Hint penalty is applied in reward.py, not here
|
| 199 |
|
| 200 |
+
final_score = round(min(score, 0.999), 4)
|
| 201 |
feedback = " ".join(feedback_parts) if feedback_parts else "No valid response provided."
|
| 202 |
return final_score, breakdown, feedback
|
| 203 |
|
|
|
|
| 288 |
else:
|
| 289 |
breakdown["impact_analysis"] = 0.0
|
| 290 |
|
| 291 |
+
final_score = round(min(score, 0.999), 4)
|
| 292 |
feedback = " ".join(feedback_parts) if feedback_parts else "No valid response provided."
|
| 293 |
return final_score, breakdown, feedback
|
| 294 |
|
|
|
|
| 399 |
|
| 400 |
# Hard cap: frontier model should score ~0.10-0.20
|
| 401 |
# We do NOT artificially cap β the rubric naturally produces low scores
|
| 402 |
+
final_score = round(min(score, 0.999), 4)
|
| 403 |
feedback = " ".join(feedback_parts) if feedback_parts else "Performance issue not identified."
|
| 404 |
return final_score, breakdown, feedback
|
| 405 |
|