netha01 commited on
Commit
c74cdc9
·
1 Parent(s): fc2a853

Fix reward boundaries to strictly (0, 1) per OpenEnv validator

Browse files
Files changed (1) hide show
  1. 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.0, min(1.0, (detection - false_positive + efficiency) / 3.0))
28
- overall = min(1.0, base + investigation_bonus)
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,