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
|
|
@ -134,7 +134,7 @@ def test_number_format_curriculum():
|
|||
assert base_cfg.seed == 1
|
||||
assert base_cfg.size == 150
|
||||
assert base_cfg.min_num_candidates == 5 and base_cfg.max_num_candidates == 25
|
||||
assert base_cfg.min_n == 10 and base_cfg.max_n == 1_000
|
||||
assert base_cfg.min_n == 1000 and base_cfg.max_n == 100_000
|
||||
assert base_cfg.max_delta == 1e1
|
||||
|
||||
# test incrementing attribute levels
|
||||
|
|
@ -143,12 +143,12 @@ def test_number_format_curriculum():
|
|||
curriculum.increment_attr_level("max_delta")
|
||||
increased_cfg = curriculum.generate_configuration(base_value)
|
||||
assert increased_cfg.min_num_candidates == 5 and increased_cfg.max_num_candidates == 100
|
||||
assert increased_cfg.min_n == 10 and increased_cfg.max_n == 1_000_000
|
||||
assert increased_cfg.min_n == 1000 and increased_cfg.max_n == 1_000_000
|
||||
assert increased_cfg.max_delta == 1e0
|
||||
|
||||
# test decrementing attribute level
|
||||
curriculum.decrement_attr_level("num_candidates")
|
||||
partially_decreased_cfg = curriculum.generate_configuration(base_value)
|
||||
assert partially_decreased_cfg.min_num_candidates == 5 and partially_decreased_cfg.max_num_candidates == 25
|
||||
assert partially_decreased_cfg.min_n == 10 and partially_decreased_cfg.max_n == 1_000_000
|
||||
assert partially_decreased_cfg.min_n == 1000 and partially_decreased_cfg.max_n == 1_000_000
|
||||
assert partially_decreased_cfg.max_delta == 1e0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue