mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-24 17:05:03 +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
|
|
@ -4,7 +4,7 @@ from decimal import ROUND_HALF_UP, Decimal, getcontext
|
|||
from random import Random
|
||||
from typing import Any, Optional
|
||||
|
||||
from ..coaching import BaseCurriculum, RangeAttributeDefinition
|
||||
from ..coaching import BaseCurriculum, RangeAttributeDefinition, ScalarAttributeDefinition
|
||||
from ..factory import ProceduralDataset, register_dataset
|
||||
|
||||
DATASET_NAME = "decimal_arithmetic"
|
||||
|
|
@ -241,10 +241,17 @@ class DecimalArithmeticCurriculum(BaseCurriculum):
|
|||
description="Number of decimal places of the numbers in problem",
|
||||
lower_field_name="min_num_decimal_places",
|
||||
upper_field_name="max_num_decimal_places",
|
||||
ensure_interval=True,
|
||||
),
|
||||
ScalarAttributeDefinition(
|
||||
name="precision",
|
||||
field_name="precision",
|
||||
description="Precision of the Decimal arithmetic operations",
|
||||
levels=[5, 7, 10, 12],
|
||||
),
|
||||
RangeAttributeDefinition(
|
||||
name="num_terms",
|
||||
levels=[2, 3, 4, 6],
|
||||
levels=[2, 5, 8, 10],
|
||||
description="Number of terms in the arithmetic expression",
|
||||
lower_field_name="min_terms",
|
||||
upper_field_name="max_terms",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue