Fix reward boundaries to strictly (0, 1) per OpenEnv validator
Browse files- graders.py +2 -2
graders.py
CHANGED
|
@@ -24,8 +24,8 @@ def compute_reward(
|
|
| 24 |
investigation_bonus: float – optional extra boost for a "investigate‑first"
|
| 25 |
strategy (used by the medium task).
|
| 26 |
"""
|
| 27 |
-
base = max(0.
|
| 28 |
-
overall =
|
| 29 |
details = RewardDetails(
|
| 30 |
detection=detection,
|
| 31 |
false_positive_penalty=false_positive,
|
|
|
|
| 24 |
investigation_bonus: float – optional extra boost for a "investigate‑first"
|
| 25 |
strategy (used by the medium task).
|
| 26 |
"""
|
| 27 |
+
base = max(0.01, min(0.99, (detection - false_positive + efficiency) / 3.0))
|
| 28 |
+
overall = max(0.01, min(0.99, base + investigation_bonus))
|
| 29 |
details = RewardDetails(
|
| 30 |
detection=detection,
|
| 31 |
false_positive_penalty=false_positive,
|