mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +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
|
|
@ -114,8 +114,8 @@ def test_aiw_curriculum():
|
|||
assert base_cfg.max_entities == 4
|
||||
assert base_cfg.task_type_weights == [1.0, 0.0, 0.0] # Default is siblings only
|
||||
|
||||
# Test incrementing task_type_weight attribute
|
||||
curriculum.increment_attr_level("task_type_weight")
|
||||
# Test incrementing task_type_weights attribute
|
||||
curriculum.increment_attr_level("task_type_weights")
|
||||
task_weight_cfg = curriculum.generate_configuration(base_value)
|
||||
assert task_weight_cfg.task_type_weights == [0.9, 0.05, 0.05] # Second level adds some friends/colleagues
|
||||
|
||||
|
|
@ -125,8 +125,8 @@ def test_aiw_curriculum():
|
|||
assert entities_cfg.max_entities == 6 # Increased max entities
|
||||
assert entities_cfg.task_type_weights == [0.9, 0.05, 0.05] # Should preserve task weight level
|
||||
|
||||
# Test decrementing task_type_weight attribute
|
||||
curriculum.decrement_attr_level("task_type_weight")
|
||||
# Test decrementing task_type_weights attribute
|
||||
curriculum.decrement_attr_level("task_type_weights")
|
||||
updated_cfg = curriculum.generate_configuration(base_value)
|
||||
assert updated_cfg.task_type_weights == [1.0, 0.0, 0.0] # Back to default weights
|
||||
assert updated_cfg.max_entities == 6 # Should preserve entities level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue