Skip to content

Commit d822118

Browse files
committed
chore: update
1 parent b9c357a commit d822118

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/strands_env/eval/aime.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ def load_dataset(self, version: Literal["2024", "2025"] = "2024") -> Iterable[Ac
5656

5757
actions = []
5858
for i, row in enumerate(dataset):
59-
sample_id = row.get(AIME_HF_PATHS[version]["id_field"]) or i
60-
problem = row.get(AIME_HF_PATHS[version]["problem_field"], None)
61-
answer = row.get(AIME_HF_PATHS[version]["answer_field"], None)
62-
if not all([sample_id, problem, answer]):
59+
problem = row.get(AIME_HF_PATHS[version]["problem_field"])
60+
answer = row.get(AIME_HF_PATHS[version]["answer_field"])
61+
if problem is None or answer is None:
6362
logger.warning(f"Missing problem or answer fields in row {i}, skipping row")
6463
continue
64+
sample_id = row.get(AIME_HF_PATHS[version]["id_field"]) or i
6565
actions.append(
6666
Action(
6767
message=str(problem),

0 commit comments

Comments
 (0)