Refactor and improve code formatting for readability in combinatorics and probability modules

This commit is contained in:
Ritvik19 2026-04-18 19:57:16 +05:30
parent dc0d81c096
commit 0f7b8b7986
5 changed files with 62 additions and 37 deletions

View file

@ -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"])