Andreas Koepf (aider)
e2957a744d
feat: Enhance GCD dataset to retry generating numbers with GCD > 1
2025-01-24 08:58:59 +01:00
Andreas Koepf (aider)
8d369e6ced
feat: Add LCM dataset generator for arithmetic reasoning tasks
2025-01-24 08:55:16 +01:00
Andreas Koepf (aider)
2bc9319aa6
feat: Add GCD dataset imports to arithmetic module
2025-01-24 08:51:29 +01:00
Andreas Koepf (aider)
1fc5f2eb8f
feat: Add GCD dataset generator for finding GCD of multiple integers
2025-01-24 08:47:19 +01:00
Andreas Koepf (aider)
d4dd3cf3e3
feat: Clarify prime factorization example and answer format
2025-01-23 22:50:00 +01:00
Andreas Koepf (aider)
c964eba5a4
feat: Add prime factorization task generator with configurable range and example
2025-01-23 22:46:58 +01:00
Andreas Koepf (aider)
45330da122
refactor: Rename chain_sum to chain_sum_dataset for consistency
2025-01-23 22:27:48 +01:00
Andreas Koepf (aider)
ed71ac20cb
feat: Update arithmetic __init__.py with docstring and additional exports
2025-01-23 22:26:51 +01:00
Andreas Koepf (aider)
40c3c9d434
feat: Add leg counting imports and exports to arithmetic package
2025-01-23 22:22:12 +01:00
Andreas Koepf (aider)
8db31dc87c
refactor: Remove centipede from ANIMALS due to variable leg count
2025-01-23 22:18:59 +01:00
Andreas Koepf (aider)
23d420bbfe
refactor: Sort ANIMALS dictionary by leg count with alphabetical order within groups
2025-01-23 22:17:27 +01:00
Andreas Koepf (aider)
84951f5730
feat: Add more 4-legged and 6-legged animals to ANIMALS dictionary
2025-01-23 22:16:08 +01:00
Andreas Koepf (aider)
0e4b4bb602
feat: Add more diverse animals to leg counting dataset
2025-01-23 22:14:15 +01:00
Andreas Koepf (aider)
b0d4ffb07b
feat: Add leg counting arithmetic task generator with animal leg counting functionality
2025-01-23 22:08:42 +01:00
Andreas Koepf (aider)
03a3bcf059
feat: Add configurable whitespace option to ArithmeticDataset
2025-01-23 14:25:54 +01:00
Andreas Koepf (aider)
6dbb5b39ee
refactor: Reorder parameters of _format_question to match other methods
2025-01-23 14:22:46 +01:00
Andreas Koepf (aider)
f12e3788d1
refactor: Pass item_rng to _format_question() method in ArithmeticDataset
2025-01-23 14:20:22 +01:00
Andreas Koepf (aider)
48492c4fd8
feat: Add arithmetic_dataset() factory function to basic_arithmetic.py
2025-01-23 12:47:01 +01:00
Andreas Koepf
72ada57dc5
style: Format code with consistent whitespace and remove unnecessary lines
2025-01-23 12:45:15 +01:00
Andreas Koepf (aider)
38801a7e6f
refactor: Remove duplicate chain_sum function from basic_arithmetic.py
2025-01-23 12:41:18 +01:00
Andreas Koepf (aider)
c253b1adbb
feat: Add chain_sum() factory function to create ChainSum dataset instances
2025-01-23 12:40:50 +01:00
Andreas Koepf (aider)
272ebc5a42
fix: Ensure deterministic iteration for ArithmeticDataset
2025-01-23 12:37:40 +01:00
Andreas Koepf (aider)
a8b3a86831
feat: Add iteration support to ArithmeticDataset with size-based termination
2025-01-23 12:34:54 +01:00
Andreas Koepf (aider)
e9e90051d6
feat: Expose arithmetic modules automatically in reasoning_gym package
2025-01-23 12:25:26 +01:00
Andreas Koepf (aider)
7cce205c5d
feat: Add iterator support to ChainSum with size-respecting iteration
2025-01-23 12:23:35 +01:00
Andreas Koepf (aider)
516d4d20d4
feat: Add special case handling for min_digits=1 in ChainSum generation
2025-01-23 12:07:56 +01:00
Andreas Koepf (aider)
4777e6b435
refactor: Move min_value and max_value calculations to __getitem__
2025-01-23 12:05:55 +01:00
Andreas Koepf (aider)
d2825f41ce
feat: Implement allow_negation to generate both positive and negative numbers in ChainSum
2025-01-23 12:01:21 +01:00
Andreas Koepf
c3bce305c1
refactor: Replace Random import with random module and update type hints
2025-01-23 12:01:20 +01:00
Andreas Koepf (aider)
4aeb76ae8c
refactor: Simplify ChainSum random number generation with base seed
2025-01-23 11:56:36 +01:00
Andreas Koepf (aider)
626fd78bda
feat: Add digit-based number range generation for chain sum tasks
2025-01-23 11:46:55 +01:00
Andreas Koepf (aider)
c8aa98f4e8
feat: Add ChainSum class for generating simple arithmetic tasks
2025-01-23 11:40:00 +01:00
Andreas Koepf
a1bd52b75e
chore: Add __init__.py to arithmetic module
2025-01-23 11:39:59 +01:00
Andreas Koepf (aider)
fbba398c91
fix: Prevent infinite loop in arithmetic dataset space generation
2025-01-23 11:34:18 +01:00
Andreas Koepf (aider)
40596262e1
feat: Unify arithmetic task generation with configurable dataset class
...
This commit introduces a new `ArithmeticDataset` class that:
- Combines complex and simple arithmetic task generation approaches
- Provides configurable task generation via `ArithmeticDatasetConfig`
- Supports deterministic task generation
- Implements dataset interface for easy use with HuggingFace datasets
- Adds comprehensive test coverage for the new implementation
Changes include:
- Refactored `basic_arithmetic.py` to use a unified dataset approach
- Added configuration validation and flexible generation options
- Created test suite to validate dataset behavior
- Removed file generation methods in favor of in-memory generation
2025-01-23 11:30:09 +01:00
Andreas Koepf
8a6364a791
feat: Add basic arithmetic module to reasoning_gym
2025-01-23 11:30:03 +01:00