Commit graph

110 commits

Author SHA1 Message Date
Zafir Stojanovski
50f5b50845 lint 2025-02-12 17:26:23 +01:00
Zafir Stojanovski
a79d3d06f2 string insertion 2025-02-12 15:18:51 +01:00
Andreas Koepf
56ba500959 update GALLERY.md & bump version 2025-02-11 23:43:56 +01:00
Andreas Koepf (aider)
c6ef97ec0b fix: Add validation for size parameter in ABConfig 2025-02-11 23:39:57 +01:00
Andreas Köpf
27938ce13a
Merge branch 'main' into rich/ab 2025-02-11 23:34:48 +01:00
Andreas Köpf
626b5aa007
Merge pull request #115 from zafstojano/env/count-primes
(env): Count primes in an interval
2025-02-11 23:19:03 +01:00
Rich Jones
d44d076ae3 Add A::B Challenges 2025-02-11 18:08:25 +01:00
Zafir Stojanovski
5a8ce7d2af lint 2025-02-11 14:44:46 +01:00
Zafir Stojanovski
1dc0a29eae count primes 2025-02-11 14:44:38 +01:00
Zafir Stojanovski
e9a492e9a5 Merge branch 'main' of https://github.com/open-thought/reasoning-gym into fix/simplify-rotate-matrix 2025-02-11 13:55:05 +01:00
Zafir Stojanovski
21b845ebef simplify rotate method 2025-02-11 13:54:54 +01:00
Zafir Stojanovski
a0a5de3658 add more config params 2025-02-10 22:30:36 +01:00
Zafir Stojanovski
ecdc85f2c2 Merge branch 'main' of https://github.com/open-thought/reasoning-gym into env/matrix-manipulation 2025-02-10 20:40:41 +01:00
Adefioye
bea9e6d96a
Add score_answer method to word_ladder (#93)
* Add score_answer method to word_ladder
* add unit test for WordLadderDataset::score_answer()

---------

Co-authored-by: Andreas Koepf <andreas.koepf@provisio.com>
2025-02-10 15:15:23 +01:00
Zafir Stojanovski
3d66cc6a7f matrix manipulation 2025-02-10 13:51:39 +01:00
Andreas Koepf
8c4400b18a reduce default zero probability for binary matrix 2025-02-09 20:05:56 +01:00
Zafir Stojanovski
18cf71a4a7 update instruction and shuffle numbers 2025-02-09 13:00:46 +01:00
Zafir Stojanovski
7273ebb590 RotateMatrix typo 2025-02-09 01:11:06 +01:00
Zafir Stojanovski
afde78196c binary matrix 2025-02-09 01:10:57 +01:00
Andreas Koepf
127f505798 add ArcAgiDataset class, fix score_entry() metadata params 2025-02-08 23:18:18 +01:00
Andreas Koepf
4d9afcaba2 clarify number_filtering task 2025-02-08 19:32:45 +01:00
Zafir Stojanovski
500bd12b61 signle digit numbers, better explanation, max_cols == max_rows == max_n 2025-02-08 18:53:25 +01:00
Zafir Stojanovski
3f5cfeed95 Merge branch 'main' of https://github.com/open-thought/reasoning-gym into env/spiral-matrix 2025-02-08 18:52:45 +01:00
Andreas Köpf
e9d87a6933
Merge branch 'main' into env/rotate-matrix 2025-02-08 17:42:04 +01:00
Zafir Stojanovski
2c40e655f9 update docs 2025-02-08 15:21:11 +01:00
Zafir Stojanovski
42312fe786 generlize to k rotations 2025-02-08 15:14:04 +01:00
Zafir Stojanovski
fe83bee725 rotate matrix 2025-02-08 14:27:10 +01:00
Zafir Stojanovski
b8cc814e7f Merge branch 'main' of https://github.com/open-thought/reasoning-gym into env/ransom-note 2025-02-08 13:19:37 +01:00
Zafir Stojanovski
3fbfa82afb Merge branch 'main' of https://github.com/open-thought/reasoning-gym into env/spiral-matrix 2025-02-08 13:15:02 +01:00
Andreas Köpf
eb8b7afea4
Merge pull request #74 from zafstojano/env/isomorphic-strings
Isomorphic Strings
2025-02-07 18:25:09 +01:00
Zafir Stojanovski
d78ce0a9f7 isomorphic strings 2025-02-07 18:23:34 +01:00
Zafir Stojanovski
747f0dbb13 pre-commit 2025-02-07 14:48:07 +01:00
Zafir Stojanovski
b24da41e69 ransom note 2025-02-07 14:47:00 +01:00
Zafir Stojanovski
0a20a2e582 spiral matrix 2025-02-07 12:46:36 +01:00
Andreas Köpf
3f6b2fc807
Add Coaching & ScoreBoard class (result tracking) (#72)
* feat: Add Coach and ScoreBoard classes for performance tracking and difficulty adjustment
* feat: Add GroupedScores class to wrap aggregated scores
* refactor: Create ScoreStats class with tuple-based score statistics
* feat: Add unit test for Coach with CompositeDataset and multiple datasets
* fix: Add difficulty metadata to leg counting dataset
* feat: Add clear() method to ScoreBoard to reset all stored data
* feat: Add __len__ method to ScoreBoard to return number of scores
* feat: Add update_dataset_config method to CompositeDataset
* cleanup __init__ & imports
2025-02-06 23:15:28 +01:00
Andreas Koepf
071c22a809 remove redundant methods from GroupAnagramsDataset 2025-02-06 14:21:03 +01:00
Andreas Köpf
d2bef8d30f
Merge pull request #65 from zafstojano/env/group-anagrams
Group Anagrams together
2025-02-06 13:03:27 +01:00
Zafir Stojanovski
256eb71555 use get_data_file_path to read file contents 2025-02-06 10:12:51 +01:00
Zafir Stojanovski
7827025f7b docs 2025-02-06 00:12:58 +01:00
Zafir Stojanovski
b4f412956e group anagrams env 2025-02-06 00:11:07 +01:00
Andreas Koepf
48999261dd register composite dataset 2025-02-04 19:17:34 +01:00
Andreas Köpf
c6fbff7d8f
Merge pull request #52 from cavit99/main
Improve Word Ladder and add complete example suite
2025-02-03 15:16:29 +01:00
Cavit Erginsoy
aff0fecef4 lint 2025-02-03 11:35:30 +00:00
Cavit Erginsoy
9b1068ea39 Merge remote-tracking branch 'upstream/main' 2025-02-03 07:44:32 +00:00
Cavit Erginsoy
d5065955a8 Refactor word ladder generation with improved validation and graph-based path finding
- Enhanced configuration validation with size and length constraints
- Implemented graph-based neighbor computation and caching
- Simplified path finding algorithm with more robust length checking
- Added more flexible word set loading with configurable length ranges
- Improved error handling for dataset generation
2025-02-03 07:21:43 +00:00
Joe Norton
731d36f43f add palindrome score_answer
add palindrome score_answer & test
2025-02-02 18:04:47 -08:00
Cavit Erginsoy
da11def5c7 Improve efficiency and reduce plural bias in word ladder generation
- Precomputed sorted word lists for each word length (stored in self.words_lists) to avoid redundant sorting on every _generate_word_pair call.
- Updated _generate_word_pair to utilize the cached sorted list, significantly improving computational efficiency.
- Implemented weighted random sampling for 5-letter words, giving words ending with 'S' a lower weight (0.5) to reduce bias without completely filtering them out.
2025-02-01 14:37:21 +00:00
Cavit Erginsoy
7e29fc12e1 refactor: Clarify word ladder question 2025-02-01 14:27:06 +00:00
Joe Norton
d0d84ae82a lint 2025-01-31 18:45:52 -08:00
Joe Norton
f75d9a2829 add palindrome_generation 2025-01-31 18:45:52 -08:00