Commit graph

33 commits

Author SHA1 Message Date
Andreas Koepf
3dc80be7d2 formatting, cleanup 2025-01-24 17:12:42 +01:00
Andreas Koepf (aider)
7fb8fca8d8 test: Add unit tests for family relationships dataset 2025-01-24 16:52:09 +01:00
Andreas Koepf
fd388f917b rename SequenceDataset -> NumberSequenceDataset 2025-01-24 16:23:02 +01:00
Andreas Koepf
ddc22868e9 Add support for integer division in basic arithmetic dataset 2025-01-24 15:07:31 +01:00
Andreas Koepf
20069b2a7d formatting 2025-01-24 10:34:07 +01:00
Andreas Koepf
98988c8481 Rename ArithmeticDataset to BasicArithmeticDataset 2025-01-24 10:31:26 +01:00
Andreas Koepf (aider)
1567776fd8 test: Add test to verify numerators are <= denominators 2025-01-24 09:37:27 +01:00
Andreas Koepf (aider)
1220118d95 feat: Add fraction simplification dataset to arithmetic module 2025-01-24 09:10:15 +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)
051c0e8ebc test: Add comprehensive unit tests for GCDDataset 2025-01-24 08:49:32 +01:00
Andreas Koepf (aider)
0406b26c4c feat: Add NumberSortingDataset to algorithmic package with configuration and tests 2025-01-23 23:28:15 +01:00
Andreas Koepf (aider)
9289a46f62 test: Add comprehensive unit tests for MiniSudokuDataset 2025-01-23 23:15:36 +01:00
Andreas Koepf (aider)
4f31a45316 test: Add comprehensive unit tests for SudokuDataset 2025-01-23 22:57:02 +01:00
Andreas Koepf (aider)
0aea0fc56e test: Add comprehensive unit tests for prime factorization dataset 2025-01-23 22:51:20 +01:00
Andreas Koepf (aider)
ee7c136f96 feat: Add comprehensive tests for leg counting dataset and configuration 2025-01-23 22:09:35 +01:00
Andreas Koepf (aider)
92487fb1f1 test: Add comprehensive unit tests for BaseConversionDataset 2025-01-23 21:50:58 +01:00
Andreas Koepf (aider)
1d829d35af test: Add comprehensive unit tests for number filtering task 2025-01-23 20:42:20 +01:00
Andreas Koepf (aider)
b6161eb20e test: Add comprehensive unit tests for WordReversalDataset 2025-01-23 20:26:12 +01:00
Andreas Koepf (aider)
e0ef654388 test: Add comprehensive unit tests for LetterCountingDataset 2025-01-23 19:12:36 +01:00
Andreas Koepf (aider)
fa68760784 feat: Add propositional logic dataset generator with comprehensive logical reasoning tasks 2025-01-23 14:38:56 +01:00
Andreas Koepf (aider)
0e9bc68776 feat: Add rule composition support to PatternRule 2025-01-23 14:04:36 +01:00
Andreas Koepf (aider)
432c9436f7 fix: Correct PatternRule.apply() method to properly handle sequence operations
This commit message captures the essence of the change: fixing the implementation of the apply() method in the PatternRule class to correctly handle sequence operations and indexing.

The key changes are:
1. Use `sequence[position]` instead of `sequence[position - 1]`
2. Adjust PREV_PLUS condition to use `position > 0`
3. Use `sequence[position - 1]` for previous element reference

Would you like me to elaborate on the specific changes or rationale?
2025-01-23 13:52:47 +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)
7cce205c5d feat: Add iterator support to ChainSum with size-respecting iteration 2025-01-23 12:23:35 +01:00
Andreas Koepf (aider)
e8c3965299 fix: Remove duplicate 1-digit number test section in test_chain_sum.py 2025-01-23 12:16:09 +01:00
Andreas Koepf (aider)
6aec30c6ed fix: Correct 1-digit number test ranges in chain sum test 2025-01-23 12:14:15 +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)
d2825f41ce feat: Implement allow_negation to generate both positive and negative numbers in ChainSum 2025-01-23 12:01:21 +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 (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 (aider)
3f80fd7b80 build: Initialize reasoning_gym package structure with packaging and development setup 2025-01-23 10:50:54 +01:00