mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-23 16:55:05 +00:00
Refactor and improve code formatting for readability in combinatorics and probability modules
This commit is contained in:
parent
dc0d81c096
commit
0f7b8b7986
5 changed files with 62 additions and 37 deletions
|
|
@ -77,9 +77,7 @@ def test_score_wrong_answer():
|
|||
|
||||
|
||||
def test_score_equivalent_fraction():
|
||||
config = ProbabilityProblemsConfig(
|
||||
seed=42, size=10, task_types=("independent_events",), task_weights=[1.0]
|
||||
)
|
||||
config = ProbabilityProblemsConfig(seed=42, size=10, task_types=("independent_events",), task_weights=[1.0])
|
||||
ds = ProbabilityProblemsDataset(config)
|
||||
item = ds[0]
|
||||
oracle_frac = Fraction(item["answer"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue