mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-22 16:49:06 +00:00
updated algorithmics dataset (#269)
* updated algorithmic datasets * added changes to symbolic and power * updated power function test
This commit is contained in:
parent
f426db90ec
commit
d9638df79c
5 changed files with 57 additions and 29 deletions
|
|
@ -90,3 +90,14 @@ def test_gsm_symbolic_generators():
|
|||
print(f"ok: q={len(question_set)}, a={len(answer_set)}")
|
||||
|
||||
i += 1
|
||||
|
||||
|
||||
def test_gsm_symbolic_score_answer():
|
||||
"""Test score answer function"""
|
||||
config = GSMSymbolicDatasetConfig(size=100, seed=42)
|
||||
dataset = GSMSymbolicDataset(config)
|
||||
|
||||
for i in range(len(dataset)):
|
||||
item = dataset[i]
|
||||
score = dataset.score_answer(item["answer"], item)
|
||||
assert score == 1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue