fix: Increase max attempts and improve operator validation in simple equations

This commit is contained in:
Andreas Koepf 2025-01-24 19:15:27 +01:00 committed by Andreas Koepf (aider)
parent 111f172c3f
commit 6a96c4f15a
2 changed files with 2 additions and 2 deletions

View file

@ -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)