mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-27 17:23:19 +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
|
|
@ -71,7 +71,7 @@ class GCDDataset(ProceduralDataset):
|
|||
"num_terms": num_terms,
|
||||
"difficulty": {
|
||||
"num_terms": (self.config.min_numbers, self.config.max_numbers),
|
||||
"max_value": (self.config.min_value, self.config.max_value),
|
||||
"value": (self.config.min_value, self.config.max_value),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -91,13 +91,14 @@ class GCDCurriculum(BaseCurriculum):
|
|||
upper_field_name="max_numbers",
|
||||
),
|
||||
RangeAttributeDefinition(
|
||||
name="max_value",
|
||||
name="value",
|
||||
levels=[100, 1000, 10000, 100000],
|
||||
description="maximum value",
|
||||
lower_field_name="min_value",
|
||||
upper_field_name="max_value",
|
||||
ensure_interval=True,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
register_dataset(DATASET_NAME, GCDDataset, GCDConfig)
|
||||
register_dataset(DATASET_NAME, GCDDataset, GCDConfig, GCDCurriculum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue