mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-22 16:49:06 +00:00
Refactor Curriculum Attributes (#335)
* remove min_value from AttributeDefinition * remove type from AttributeDefinition * Add CurriculumContext * add ensure_interval option for RangeAttributes * docs: Add legend explaining curriculum indicators in dataset gallery * update GALLERY.md
This commit is contained in:
parent
4e7d9296ee
commit
d2c895f1d3
101 changed files with 286 additions and 677 deletions
|
|
@ -4,7 +4,7 @@ import random
|
|||
from dataclasses import dataclass, field
|
||||
from typing import Optional
|
||||
|
||||
from ..coaching import AttributeType, BaseCurriculum, ScalarAttributeDefinition
|
||||
from ..coaching import BaseCurriculum, ScalarAttributeDefinition
|
||||
from ..factory import ProceduralDataset, register_dataset
|
||||
|
||||
|
||||
|
|
@ -191,46 +191,31 @@ class ComplexArithmeticCurriculum(BaseCurriculum):
|
|||
name="min_real",
|
||||
field_name="min_real",
|
||||
levels=[-10, -100, -10000, -100000000],
|
||||
default_level=0,
|
||||
description="Minimum real part for complex numbers",
|
||||
attr_type=AttributeType.STATIC,
|
||||
min_value=-10,
|
||||
),
|
||||
ScalarAttributeDefinition(
|
||||
name="max_real",
|
||||
field_name="max_real",
|
||||
levels=[10, 100, 10000, 100000000],
|
||||
default_level=0,
|
||||
description="Maximum real part for complex numbers",
|
||||
attr_type=AttributeType.STATIC,
|
||||
min_value=10,
|
||||
),
|
||||
ScalarAttributeDefinition(
|
||||
name="min_imag",
|
||||
field_name="min_imag",
|
||||
levels=[-10, -100, -10000, -100000000],
|
||||
default_level=0,
|
||||
description="Minimum imaginary part for complex numbers",
|
||||
attr_type=AttributeType.STATIC,
|
||||
min_value=-10,
|
||||
),
|
||||
ScalarAttributeDefinition(
|
||||
name="max_imag",
|
||||
field_name="max_imag",
|
||||
levels=[10, 100, 10000, 100000000],
|
||||
default_level=0,
|
||||
description="Maximum imaginary part for complex numbers",
|
||||
attr_type=AttributeType.STATIC,
|
||||
min_value=10,
|
||||
),
|
||||
ScalarAttributeDefinition(
|
||||
name="operations_weights",
|
||||
field_name="operations_weights",
|
||||
levels=[[0.4, 0.4, 0.1, 0.1], [0.25, 0.25, 0.25, 0.25], [0.2, 0.2, 0.3, 0.3], [0.1, 0.1, 0.4, 0.4]],
|
||||
default_level=0,
|
||||
description="Operations weights to sample operation to use for each complex arithmetic problem",
|
||||
attr_type=AttributeType.STATIC,
|
||||
min_value=[0.4, 0.4, 0.1, 0.1],
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue