mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Show curricula (#295)
* feat: Add debug_curricula.py script to generate CURRICULA.md with dataset curriculum details
This commit is contained in:
parent
edab0389b6
commit
6615d8e662
4 changed files with 257 additions and 5 deletions
|
|
@ -177,18 +177,18 @@ def test_base_conversion__curriculum():
|
|||
base_cfg: BaseConversionConfig = curriculum.generate_configuration(base_value)
|
||||
assert base_cfg.seed == 1
|
||||
assert base_cfg.size == 150
|
||||
assert base_cfg.min_base == 9 and base_cfg.max_base == 9
|
||||
assert base_cfg.min_base == 2 and base_cfg.max_base == 9
|
||||
assert base_cfg.min_value == 1000 and base_cfg.max_value == 1000
|
||||
|
||||
# test incrementing attribute levels
|
||||
curriculum.increment_attr_level("base")
|
||||
curriculum.increment_attr_level("value")
|
||||
increased_cfg = curriculum.generate_configuration(base_value)
|
||||
assert increased_cfg.min_base == 9 and increased_cfg.max_base == 18
|
||||
assert increased_cfg.min_base == 2 and increased_cfg.max_base == 18
|
||||
assert increased_cfg.min_value == 1000 and increased_cfg.max_value == 10000
|
||||
|
||||
# test decrementing attribute level for base again
|
||||
curriculum.decrement_attr_level("base")
|
||||
partially_decreased_cfg = curriculum.generate_configuration(base_value)
|
||||
assert partially_decreased_cfg.min_base == 9 and partially_decreased_cfg.max_base == 9
|
||||
assert partially_decreased_cfg.min_base == 2 and partially_decreased_cfg.max_base == 9
|
||||
assert partially_decreased_cfg.min_value == 1000 and partially_decreased_cfg.max_value == 10000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue