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
Zafir Stojanovski
142d631760
remove redundant methods
2025-02-06 21:49:29 +01:00
Zafir Stojanovski
968ab1dbee
palindrome partitioning
2025-02-06 21:42:39 +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
Andreas Koepf
b49167c61c
lint
2025-01-31 12:16:08 +01:00
Andreas Koepf (aider)
7d911a8c25
fix: Improve base conversion logic for non-standard bases
2025-01-31 12:09:32 +01:00
Andreas Koepf
a577f7cdf6
use sorted() for repeatable generation outputs (e.g. GALLERY.md)
2025-01-30 23:33:43 +01:00
Andreas Koepf
5ae329becd
lint
2025-01-30 23:14:32 +01:00
Cavit Erginsoy
df3c4580ee
INIT
2025-01-30 21:32:46 +00:00
Cavit Erginsoy
d58dfd0bd4
INIT
2025-01-30 19:42:58 +00:00
Andreas Koepf
cca03d4b09
add newline to word sorting template
2025-01-27 16:57:49 +01:00
Andreas Koepf (aider)
f91417aaa9
feat: Clarify word sorting instructions with ASCII/Unicode ordering and output format
2025-01-26 22:29:57 +01:00
Andreas Koepf (aider)
9bb5a94c29
refactor: Change word sorting answer format from list string to comma-separated string
2025-01-26 22:23:18 +01:00
Andreas Koepf
cae7f0f98b
min python 3.11 to support StrEnum
2025-01-26 22:17:43 +01:00
Andreas Koepf
ecbb155184
fix unit tests, lower python dependency to 3.9
2025-01-26 16:55:17 +01:00
Andreas Koepf (aider)
a2f9bf0535
fix: Import missing 're' module for regex word extraction
2025-01-26 16:14:23 +01:00
Andreas Koepf (aider)
f75471119c
feat: Add word sorting task generation with text transformations
2025-01-26 16:14:10 +01:00
Andreas Koepf (aider)
648ad26bd3
feat: Add word sorting dataset with configurable text transformations
2025-01-26 16:11:32 +01:00
Andreas Koepf (aider)
49533e10ad
refactor: Update default sentence length constraints to 3-20 words
2025-01-26 15:57:02 +01:00
Andreas Koepf (aider)
b03b02f3a5
refactor: Update sentence extraction regex to preserve ending punctuation
2025-01-26 15:56:03 +01:00
Andreas Koepf (aider)
fa9465e6a9
refactor: Rename num_of_words_in_sentence and add max_words_in_sentence config
2025-01-26 15:46:21 +01:00
Andreas Koepf
9abea574ed
refactor: Update sentence reordering prompt to be more descriptive
2025-01-26 15:46:19 +01:00
Andreas Köpf
684a69603f
Merge branch 'main' into koko/scramble
2025-01-26 15:41:25 +01:00
Andreas Koepf
7977895275
rename word_reversal.py -> word_sequence_reversal.py
2025-01-26 11:57:50 +01:00
Andreas Koepf (aider)
cf864d523a
refactor: Update import for word sequence reversal module
2025-01-26 11:53:48 +01:00
Andreas Koepf (aider)
ae79483609
fix: Correct WordReversalConfig references to WordSequenceReversalConfig
2025-01-26 11:52:25 +01:00