mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-22 16:49:06 +00:00
Fix formatting of added instructions
This commit is contained in:
parent
09ea24d84d
commit
b2ca8016fb
7 changed files with 25 additions and 22 deletions
|
|
@ -35,11 +35,10 @@ class NumberSortingDataset(ProceduralDataset):
|
|||
def __init__(self, config: NumberSortingConfig):
|
||||
super().__init__(config=config, seed=config.seed, size=config.size)
|
||||
self.added_instruction = """
|
||||
\n\n
|
||||
Please follow the instruction below:
|
||||
# 1. Let all your answers be a list of numbers. Instead of reporting your answer as -69, -13, 1, 7, 11, 43, 59, 61, use ['-69', '-13', '1', '7', '11', '43', '59', '61'] instead
|
||||
# 2. Convert all numbers in the square brackets as strings. For example, ['-69', '-13', '1', '7', '11', '43', '59', '61']
|
||||
"""
|
||||
Please follow the instruction below:
|
||||
## 1. Let all your answers be a list of numbers. Instead of reporting your answer as -69, -13, 1, 7, 11, 43, 59, 61, use ['-69', '-13', '1', '7', '11', '43', '59', '61'] instead
|
||||
## 2. Convert all numbers in the square brackets as strings. For example, ['-69', '-13', '1', '7', '11', '43', '59', '61']
|
||||
"""
|
||||
|
||||
def _format_number(self, num: float, decimals: int) -> str:
|
||||
"""Format number with specified decimal places"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue