mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +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
|
|
@ -26,6 +26,8 @@ Now, determine the minimum number of minutes that must elapse until no cell in t
|
|||
{matrix}
|
||||
"""
|
||||
|
||||
DATASET_NAME = "rotten_oranges"
|
||||
|
||||
|
||||
@dataclass
|
||||
class RottenOrangesConfig:
|
||||
|
|
@ -120,6 +122,8 @@ class RottenOrangesDataset(ProceduralDataset):
|
|||
"question": QUESTION_TEMPLATE.format(matrix=matrix_str),
|
||||
"answer": str(answer),
|
||||
"metadata": {
|
||||
"source_dataset": DATASET_NAME,
|
||||
"source_index": idx,
|
||||
"matrix": matrix,
|
||||
"solution": answer,
|
||||
"n": n,
|
||||
|
|
@ -146,4 +150,4 @@ class RottenOrangesCurriculum(BaseCurriculum):
|
|||
)
|
||||
|
||||
|
||||
register_dataset("rotten_oranges", RottenOrangesDataset, RottenOrangesConfig, RottenOrangesCurriculum)
|
||||
register_dataset(DATASET_NAME, RottenOrangesDataset, RottenOrangesConfig, RottenOrangesCurriculum)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue