mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-23 16:55:05 +00:00
add ArcAgiDataset class, fix score_entry() metadata params
This commit is contained in:
parent
2ad0965fdc
commit
4e49806d22
20 changed files with 194 additions and 93 deletions
|
|
@ -127,11 +127,12 @@ class ComplexArithmeticDataset(ProceduralDataset):
|
|||
|
||||
return student_result
|
||||
|
||||
def score_answer(self, answer: str, metadata: dict) -> float:
|
||||
def score_answer(self, answer: Optional[str], entry: dict) -> float:
|
||||
"""Score the answer using exponential distance-based scoring."""
|
||||
if answer is None:
|
||||
return 0.0
|
||||
|
||||
metadata = entry["metadata"]
|
||||
try:
|
||||
student_result = self.parse_string_to_complex(answer)
|
||||
expected_result = complex(*metadata["result"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue