mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
added validation
This commit is contained in:
parent
4c94975d15
commit
4d9ea46c85
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ class ReArcConfig:
|
|||
seed: Optional[int] = None
|
||||
size: int = 500
|
||||
|
||||
def validate(self):
|
||||
assert self.diff_lb < self.diff_ub, "diff_lb must be < diff_ub."
|
||||
assert self.size > 0, "Size of dataset must be positive."
|
||||
|
||||
|
||||
class ReArcDataset(ProceduralDataset):
|
||||
def __init__(self, config: ReArcConfig):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue