Skip to content

Commit 7672b2e

Browse files
committed
TST: test that estimator don't fail if given many alphas
1 parent ed374e6 commit 7672b2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mapie/tests/test_mondrian.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@
177177

178178

179179
@pytest.mark.parametrize("mapie_estimator_name", VALID_MAPIE_ESTIMATORS_NAMES)
180-
def test_valid_estimators_dont_fail(mapie_estimator_name):
180+
@pytest.mark.parametrize("alpha", [.2, [.2, .4]])
181+
def test_valid_estimators_dont_fail(mapie_estimator_name, alpha):
181182
"""Test that valid estimators don't fail"""
182183
task_dict = VALID_MAPIE_ESTIMATORS[mapie_estimator_name]
183184
mapie_estimator = task_dict["estimator"]
@@ -196,7 +197,7 @@ def test_valid_estimators_dont_fail(mapie_estimator_name):
196197
)
197198
)
198199
mondrian_cp.fit(x, y, partition=partition)
199-
mondrian_cp.predict(x, partition=partition, alpha=.2)
200+
mondrian_cp.predict(x, partition=partition, alpha=alpha)
200201

201202

202203
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)