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
|
|
@ -7,6 +7,8 @@ import sympy
|
|||
from ..coaching import BaseCurriculum, ScalarAttributeDefinition
|
||||
from ..factory import ProceduralDataset, register_dataset
|
||||
|
||||
DATASET_NAME = "intermediate_integration"
|
||||
|
||||
|
||||
@dataclass
|
||||
class IntermediateIntegrationConfig:
|
||||
|
|
@ -235,6 +237,8 @@ Use same variable symbols as given in the question
|
|||
"question": question,
|
||||
"answer": answer_str,
|
||||
"metadata": {
|
||||
"source_dataset": DATASET_NAME,
|
||||
"source_index": index,
|
||||
"integrand": str(integrand),
|
||||
"problem_type": problem_type,
|
||||
"variable": str(x),
|
||||
|
|
@ -292,7 +296,7 @@ class IntermediateIntegrationCurriculum(BaseCurriculum):
|
|||
|
||||
|
||||
register_dataset(
|
||||
"intermediate_integration",
|
||||
DATASET_NAME,
|
||||
IntermediateIntegrationDataset,
|
||||
IntermediateIntegrationConfig,
|
||||
IntermediateIntegrationCurriculum,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue