Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions project/common/nanoeval/nanoeval/solvers/mcq.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ async def get_summary(self, results: list[tuple[MCQTask, Answer]]) -> dict[str,

def _choice_to_answer_group(picked: int | set[int]) -> int:
if isinstance(picked, set):
assert all(p < 10 for p in picked)
# Every answer group is a unique power of 10
return sum([10 ** (i + 1) + p for i, p in enumerate(picked)])
assert all(0 <= p < 10 for p in picked)
# Encode each selected index in its own decimal digit position.
return sum(10**p for p in picked)
return picked

samples_df = pd.DataFrame(
Expand Down