mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-26 17:13:17 +00:00
feat: Add arithmetic_dataset() factory function to basic_arithmetic.py
This commit is contained in:
parent
72ada57dc5
commit
48492c4fd8
3 changed files with 104 additions and 20 deletions
|
|
@ -29,7 +29,7 @@ for item in dataset:
|
|||
```
|
||||
|
||||
Example output:
|
||||
```json
|
||||
```
|
||||
{'question': '4 + 3 =', 'answer': '7', 'metadata': {'num_terms': 2, 'num_digits': 1, 'expression': '4 + 3'}}
|
||||
{'question': '812 + 880 =', 'answer': '1692', 'metadata': {'num_terms': 2, 'num_digits': 3, 'expression': '812 + 880'}}
|
||||
{'question': '2 + 6 + 3 + 4 + 0 =', 'answer': '15', 'metadata': {'num_terms': 5, 'num_digits': 1, 'expression': '2 + 6 + 3 + 4 + 0'}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue