mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
add seed & size params to RubicsCubeConfig
This commit is contained in:
parent
08ee435d47
commit
25505e3a75
2 changed files with 11 additions and 8 deletions
|
|
@ -14,6 +14,8 @@ class RubiksCubeConfig:
|
|||
|
||||
scramble_steps: int = 3 # Number of random steps from initial state
|
||||
cube_size: int = 3 # Default to a standard 3x3x3 cube
|
||||
seed: Optional[int] = None
|
||||
size: int = 500
|
||||
|
||||
def validate(self) -> None:
|
||||
"""Validate configuration parameters"""
|
||||
|
|
@ -30,7 +32,7 @@ class RubiksCubeDataset(ProceduralDataset):
|
|||
"You are given a {cube_size}x{cube_size}x{cube_size} Rubik's cube. It looks like this:\n\n{cube_render} \n\nPlease provide a solution to solve this cube using Singmaster notation.",
|
||||
"You see a size {cube_size} Rubik's cube. It is arranged this:\n\n{cube_render} \n\nPlease provide a solution to solve this cube.",
|
||||
]
|
||||
super().__init__(config=config)
|
||||
super().__init__(config=config, seed=config.seed, size=config.size)
|
||||
|
||||
def _generate_random_moves(self, rng: Random, cube: Cube, num_steps: int = 50, wide=None) -> List[CubeMove]:
|
||||
"""Generate a list of random moves (but don't apply them).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue