mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
formatting
This commit is contained in:
parent
98988c8481
commit
20069b2a7d
37 changed files with 504 additions and 666 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from dataclasses import dataclass
|
||||
from random import Random
|
||||
from typing import Any, Literal, Optional
|
||||
|
||||
from ..dataset import ProceduralDataset
|
||||
|
||||
|
||||
|
|
@ -145,7 +146,6 @@ class BasicArithmeticDataset(ProceduralDataset):
|
|||
expression = " ".join(expression_parts)
|
||||
return expression, result
|
||||
|
||||
|
||||
def _format_question(self, rng: Random, expression: str) -> str:
|
||||
"""Format the expression according to config style"""
|
||||
if self.config.format_style == "simple":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue