fix: Each task's score must be strictly between 0 and 1 (not 0.0 and not 1.0)
Browse files- graders/tasks.py +3 -4
graders/tasks.py
CHANGED
|
@@ -42,8 +42,7 @@ class Task2_ClaimAndRebuttal:
|
|
| 42 |
def grade(self, observation: DebateObservation) -> float:
|
| 43 |
|
| 44 |
if observation.attempt_count < 3:
|
| 45 |
-
return 0.
|
| 46 |
-
|
| 47 |
score = 0.0
|
| 48 |
action_text = observation.metadata.get("action", "")
|
| 49 |
|
|
@@ -69,8 +68,8 @@ class Task3_FullDebate:
|
|
| 69 |
|
| 70 |
def grade(self, observation: DebateObservation) -> float:
|
| 71 |
if not observation.done or observation.attempt_count < 5:
|
| 72 |
-
return 0.
|
| 73 |
-
|
| 74 |
score = 0.0
|
| 75 |
action_text = observation.metadata.get("action", "")
|
| 76 |
|
|
|
|
| 42 |
def grade(self, observation: DebateObservation) -> float:
|
| 43 |
|
| 44 |
if observation.attempt_count < 3:
|
| 45 |
+
return 0.01
|
|
|
|
| 46 |
score = 0.0
|
| 47 |
action_text = observation.metadata.get("action", "")
|
| 48 |
|
|
|
|
| 68 |
|
| 69 |
def grade(self, observation: DebateObservation) -> float:
|
| 70 |
if not observation.done or observation.attempt_count < 5:
|
| 71 |
+
return 0.01
|
| 72 |
+
|
| 73 |
score = 0.0
|
| 74 |
action_text = observation.metadata.get("action", "")
|
| 75 |
|