mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-05-03 17:53:26 +00:00
fix(envs): Add source dataset and index to metadata (#388)
* add source dataset and index to metadata * fix typo * fix coach class and its test
This commit is contained in:
parent
c6d01541aa
commit
4c47527130
104 changed files with 549 additions and 146 deletions
|
|
@ -8,6 +8,8 @@ import sympy
|
|||
from ..coaching import BaseCurriculum, RangeAttributeDefinition
|
||||
from ..factory import ProceduralDataset, register_dataset
|
||||
|
||||
DATASET_NAME = "simple_integration"
|
||||
|
||||
|
||||
@dataclass
|
||||
class SimpleIntegrationConfig:
|
||||
|
|
@ -82,6 +84,8 @@ When performing calculations, please follow these guidelines:
|
|||
"question": question,
|
||||
"answer": str(polynomial) + " + C",
|
||||
"metadata": {
|
||||
"source_dataset": DATASET_NAME,
|
||||
"source_index": idx,
|
||||
"integrand": str(derivative),
|
||||
"variable": str(symbol),
|
||||
"expected_answer_expression": polynomial,
|
||||
|
|
@ -128,4 +132,4 @@ class SimpleIntegrationCurriculum(BaseCurriculum):
|
|||
)
|
||||
|
||||
|
||||
register_dataset("simple_integration", SimpleIntegrationDataset, SimpleIntegrationConfig, SimpleIntegrationCurriculum)
|
||||
register_dataset(DATASET_NAME, SimpleIntegrationDataset, SimpleIntegrationConfig, SimpleIntegrationCurriculum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue