mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-23 16:55:05 +00:00
fix(curriculum): Make boundaries in curriculum more sensible (#407)
* init * fix tests * unify codeio * filtered for libraries not present in reasoning-gym * fix more bounds * puzzle24 * knight swap curriculum * fix number sorting * fix attributes * add validation of config in creation of dataset * dry run for instantiating and validating the datasets * remove unused imports * fix curriculum tests to reference newly updated attribute names
This commit is contained in:
parent
7853263650
commit
dced3bfc45
132 changed files with 1226 additions and 347 deletions
|
|
@ -123,7 +123,7 @@ def test_binary_matrix_answer():
|
|||
assert dataset.score_answer(answer, entry) == 0.0
|
||||
|
||||
|
||||
def test_n_queens_curriculum():
|
||||
def test_binary_matrix_curriculum():
|
||||
curriculum = BinaryMatrixCurriculum()
|
||||
|
||||
base_value = {"size": 150, "seed": 1}
|
||||
|
|
@ -139,7 +139,7 @@ def test_n_queens_curriculum():
|
|||
curriculum.increment_attr_level("p_zero")
|
||||
increased_cfg = curriculum.generate_configuration(base_value)
|
||||
assert increased_cfg.p_zero == 0.25
|
||||
assert increased_cfg.min_n == 10 and increased_cfg.max_n == 50
|
||||
assert increased_cfg.min_n == 10 and increased_cfg.max_n == 25
|
||||
|
||||
# test decrementing attribute level for n again
|
||||
curriculum.decrement_attr_level("n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue