mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-26 17:13:17 +00:00
use native types List->list, Dict->dict, Set->set, Tuple->tuple
This commit is contained in:
parent
5d02064b5a
commit
3e7ff3b084
95 changed files with 754 additions and 760 deletions
|
|
@ -164,7 +164,7 @@ Buttons:
|
|||
# If no solution found, regenerate
|
||||
return self.generate_quantum_puzzle(rng, difficulty)
|
||||
|
||||
def score_answer(self, answer: Optional[str], entry: dict[str, any]) -> float:
|
||||
def score_answer(self, answer: Optional[str], entry: dict[str, Any]) -> float:
|
||||
"""Determine if the solution provided solves the task.
|
||||
|
||||
The function awards 1.0 for a correct answer and less otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue