mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +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
|
|
@ -109,19 +109,19 @@ def test_ab_curriculum():
|
|||
|
||||
assert base_cfg.seed == 1
|
||||
assert base_cfg.size == 150
|
||||
assert base_cfg.length == 1
|
||||
assert base_cfg.length == 10
|
||||
|
||||
# Test and validate increase in levels
|
||||
curriculum.increment_attr_level("length")
|
||||
increase_cfg: ABCurriculum = curriculum.generate_configuration(base_value)
|
||||
|
||||
assert increase_cfg.length == 10
|
||||
assert increase_cfg.length == 25
|
||||
|
||||
# Test and validate decrease in levels
|
||||
curriculum.decrement_attr_level("length")
|
||||
decrease_cfg: ABCurriculum = curriculum.generate_configuration(base_value)
|
||||
|
||||
assert decrease_cfg.length == 1
|
||||
assert decrease_cfg.length == 10
|
||||
|
||||
# Test upper bound boundary condition
|
||||
for _ in range(10):
|
||||
|
|
@ -133,4 +133,4 @@ def test_ab_curriculum():
|
|||
for _ in range(10):
|
||||
curriculum.decrement_attr_level("length")
|
||||
lower_bound_cfg: ABCurriculum = curriculum.generate_configuration(base_value)
|
||||
assert lower_bound_cfg.length == 1
|
||||
assert lower_bound_cfg.length == 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue