mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Add expr_str to return values in countdown.py
Modified return statement to include the modified expression string.
This commit is contained in:
parent
85629bdfec
commit
7b6283e81b
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class CountdownDataset(ProceduralDataset):
|
|||
for sym_name, num_str in replacements:
|
||||
expr_str = expr_str.replace(sym_name, num_str)
|
||||
|
||||
return expr, numbers, syms
|
||||
return expr, numbers, syms, expr_str
|
||||
|
||||
def _generate_expression(self, rng: Random) -> tuple[str, list[int], int]:
|
||||
"""Generate a valid expression and its result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue