mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-29 17:35:16 +00:00
fix: Increase max attempts and improve operator validation in simple equations
This commit is contained in:
parent
111f172c3f
commit
6a96c4f15a
2 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ class SimpleEquationsDataset(ProceduralDataset):
|
|||
Returns:
|
||||
Tuple of (equation string, solution integer)
|
||||
"""
|
||||
max_attempts = 100 # Prevent infinite loops
|
||||
max_attempts = 1000 # Prevent infinite loops
|
||||
|
||||
for _ in range(max_attempts):
|
||||
x = Symbol(variable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue