Commit graph

65 commits

Author SHA1 Message Date
Andreas Koepf (aider)
45cf64ff37 feat: Add hint for lowercase letters in base conversion questions for bases > 10 2025-01-23 21:49:08 +01:00
Andreas Koepf (aider)
9dcf4c11b2 refactor: Remove unnecessary rstrip('L') calls in base conversion 2025-01-23 21:46:06 +01:00
Andreas Koepf (aider)
00fc115131 fix: Strip whitespace from base conversion source and target representations 2025-01-23 21:41:20 +01:00
Andreas Koepf (aider)
f3f7d1c96b feat: Add base conversion task with configurable base ranges 2025-01-23 21:37:40 +01:00
Andreas Koepf (aider)
30d3ef6b05 test: Add comprehensive unit tests for number filtering task 2025-01-23 20:42:20 +01:00
Andreas Koepf (aider)
011c5b34e7 feat: Add number filtering task to algorithmic package 2025-01-23 20:39:50 +01:00
Andreas Koepf (aider)
b32c6519c4 test: Add comprehensive unit tests for WordReversalDataset 2025-01-23 20:26:12 +01:00
Andreas Koepf (aider)
5e324f98fa feat: Add word reversal task generator with configurable word count 2025-01-23 20:25:36 +01:00
Andreas Koepf (aider)
4f198bfb80 feat: Add algorithmic and data modules to reasoning_gym package 2025-01-23 19:21:57 +01:00
Andreas Koepf (aider)
355c718791 refactor: Replace deprecated open_text() with files() API 2025-01-23 19:19:14 +01:00
Andreas Koepf (aider)
cd0bc93092 fix: Ensure letter counting dataset extracts only alphanumeric words 2025-01-23 19:17:45 +01:00
Andreas Koepf
1f92bf4117 update dev dependencies (requirements-dev.txt) 2025-01-23 19:16:40 +01:00
Andreas Koepf (aider)
f9576acd4b test: Add comprehensive unit tests for LetterCountingDataset 2025-01-23 19:12:36 +01:00
Andreas Koepf (aider)
a929bc3d1d feat: Add letter counting algorithmic task with configurable text span generation 2025-01-23 19:11:15 +01:00
Andreas Koepf
17acf95414 add plaintext of book In the year 2889 by Michel & Jules Verne (project Gutenberg eBook #19362) 2025-01-23 19:01:44 +01:00
Andreas Koepf (aider)
0418ce22ad feat: Add data file loading utilities to reasoning_gym.data 2025-01-23 18:58:58 +01:00
Andreas Koepf (aider)
00430d9d6a feat: Add data file packaging configuration and __init__.py for reasoning_gym.data 2025-01-23 18:57:34 +01:00
Andreas Koepf (aider)
0a889d8463 docs: Add documentation for PropositionalLogicDataset to README 2025-01-23 14:50:02 +01:00
Andreas Koepf (aider)
2ca5db51ea feat: Add logic module to reasoning_gym package imports 2025-01-23 14:41:44 +01:00
Andreas Koepf (aider)
0521254208 feat: Add propositional logic dataset generator with comprehensive logical reasoning tasks 2025-01-23 14:38:56 +01:00
Andreas Koepf (aider)
85f6f63cb1 feat: Add configurable whitespace option to ArithmeticDataset 2025-01-23 14:25:54 +01:00
Andreas Koepf (aider)
dae0cff2f5 refactor: Reorder parameters of _format_question to match other methods 2025-01-23 14:22:46 +01:00
Andreas Koepf (aider)
dce4c7eba5 refactor: Pass item_rng to _format_question() method in ArithmeticDataset 2025-01-23 14:20:22 +01:00
Andreas Koepf (aider)
cdb343ac8d docs: Add comprehensive documentation for existing generators in README 2025-01-23 14:15:12 +01:00
Andreas Koepf (aider)
36c6905355 fix: Correct rule composition in PatternRule to properly chain subrules 2025-01-23 14:07:18 +01:00
Andreas Koepf (aider)
a2686341a3 feat: Add rule composition support to PatternRule 2025-01-23 14:04:36 +01:00
Andreas Koepf (aider)
3381669f98 fix: Correct sequence generation and pattern rule application logic 2025-01-23 14:00:33 +01:00
Andreas Koepf (aider)
8a78d20fad fix: Correct sequence generation by using previous number in PatternRule 2025-01-23 13:54:11 +01:00
Andreas Koepf (aider)
1bae1d5c4d fix: Correct PatternRule.apply() to use current sequence element 2025-01-23 13:53:30 +01:00
Andreas Koepf (aider)
26bc1ac1c1 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
be83749286 add cognition module 2025-01-23 13:42:36 +01:00
Andreas Koepf (aider)
a3341e08fa feat: Add sequence dataset with dynamic pattern generation and tests
This commit introduces a comprehensive sequence dataset generator with the following key features:
- Dynamic pattern generation through operation composition
- Configurable complexity and sequence lengths
- Validation to ensure sequences are interesting and solvable
- Human-readable rule descriptions
- Comprehensive test coverage
- Iterator protocol support
- A convenient factory function

The implementation includes:
- `SequenceDataset` class for generating sequence completion tasks
- `PatternRule` for representing and applying sequence generation rules
- `PatternGenerator` for creating diverse pattern rules
- Extensive test suite to validate dataset generation
2025-01-23 13:41:23 +01:00
Andreas Koepf (aider)
1b42fcb737 feat: Create cognition/__init__.py with module docstring 2025-01-23 13:33:14 +01:00
Andreas Koepf (aider)
3179cb83af feat: Add cognition module with initial reasoning tasks namespace 2025-01-23 13:31:30 +01:00
Andreas Koepf (aider)
8d1dac9e62 feat: Add arithmetic_dataset() factory function to basic_arithmetic.py 2025-01-23 12:47:01 +01:00
Andreas Koepf
0aa35e15a3 style: Format code with consistent whitespace and remove unnecessary lines 2025-01-23 12:45:15 +01:00
Andreas Koepf (aider)
ba493adbe7 refactor: Remove duplicate chain_sum function from basic_arithmetic.py 2025-01-23 12:41:18 +01:00
Andreas Koepf (aider)
d3cc4b0d0e feat: Add chain_sum() factory function to create ChainSum dataset instances 2025-01-23 12:40:50 +01:00
Andreas Koepf (aider)
f42d6c2212 fix: Ensure deterministic iteration for ArithmeticDataset 2025-01-23 12:37:40 +01:00
Andreas Koepf (aider)
05ba566a51 feat: Add iteration support to ArithmeticDataset with size-based termination 2025-01-23 12:34:54 +01:00
Andreas Koepf
fb382112be edit simple example in README 2025-01-23 12:30:52 +01:00
Andreas Koepf (aider)
575624aa93 feat: Expose arithmetic modules automatically in reasoning_gym package 2025-01-23 12:25:26 +01:00
Andreas Koepf (aider)
5c5cbf3194 feat: Add iterator support to ChainSum with size-respecting iteration 2025-01-23 12:23:35 +01:00
Andreas Koepf (aider)
0c76cc94e7 docs: Add ChainSum usage example to README 2025-01-23 12:17:20 +01:00
Andreas Koepf (aider)
4e7d69e39f fix: Remove duplicate 1-digit number test section in test_chain_sum.py 2025-01-23 12:16:09 +01:00
Andreas Koepf (aider)
b92c278ef7 fix: Correct 1-digit number test ranges in chain sum test 2025-01-23 12:14:15 +01:00
Andreas Koepf (aider)
95fdca5a92 feat: Add special case handling for min_digits=1 in ChainSum generation 2025-01-23 12:07:56 +01:00
Andreas Koepf (aider)
e1734b0b11 refactor: Move min_value and max_value calculations to __getitem__ 2025-01-23 12:05:55 +01:00
Andreas Koepf (aider)
1ff01627cc feat: Implement allow_negation to generate both positive and negative numbers in ChainSum 2025-01-23 12:01:21 +01:00
Andreas Koepf
358829cc60 refactor: Replace Random import with random module and update type hints 2025-01-23 12:01:20 +01:00