mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
feat: Add score_answer method to ReseedingDataset
This commit is contained in:
parent
6d59648264
commit
66f99be4a3
1 changed files with 4 additions and 0 deletions
|
|
@ -118,3 +118,7 @@ class ReseedingDataset(Iterable[Dict[str, Any]]):
|
|||
item = self._current_dataset[self._current_idx]
|
||||
self._current_idx += 1
|
||||
return item
|
||||
|
||||
def score_answer(self, answer: Optional[str], entry: Dict[str, any]) -> float:
|
||||
"""Forward scoring to the wrapped dataset's implementation"""
|
||||
return self.dataset.score_answer(answer, entry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue