mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
refactor: Reorder parameters of _format_question to match other methods
This commit is contained in:
parent
dce4c7eba5
commit
dae0cff2f5
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ class ArithmeticDataset:
|
|||
else:
|
||||
expression, result = self._generate_simple_task(item_rng, num_terms, num_digits)
|
||||
|
||||
question = self._format_question(expression, item_rng)
|
||||
question = self._format_question(item_rng, expression)
|
||||
|
||||
return {
|
||||
"question": question,
|
||||
|
|
@ -156,7 +156,7 @@ class ArithmeticDataset:
|
|||
self._current_idx += 1
|
||||
return item
|
||||
|
||||
def _format_question(self, expression: str, rng: Random) -> str:
|
||||
def _format_question(self, rng: Random, expression: str) -> str:
|
||||
"""Format the expression according to config style"""
|
||||
if self.config.format_style == "simple":
|
||||
return f"{expression} ="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue