Skip to content

Commit

Permalink
FIX: remove old cs_bound tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentblot28 committed Dec 20, 2024
1 parent 3f8804b commit a4814e5
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions mapie/tests/test_futur_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,28 +717,3 @@ def test_optim_kwargs():
mapie.fit(
X, y, calib_kwargs={"method": "SLSQP", "options": {"maxiter": 2}}
)


@pytest.mark.parametrize("cs_bound, sym", [
(None, True), (None, False), (3, True), ((1.0, 1), False)
])
def test_cs_bound(cs_bound: Union[float, Tuple[float, float]], sym: bool):
mapie = SplitCPRegressor(
alpha=0.1, conformity_score=AbsoluteConformityScore(sym=sym)
)
mapie.fit(X_toy, y_toy)
mapie.predict(X_toy, cs_bound=cs_bound)


@pytest.mark.parametrize("cs_bound, sym", [
(3, False), ((1.0, 1), True)
])
def test_cs_bound_error(
cs_bound: Union[float, Tuple[float, float]], sym: bool
) -> None:
mapie = SplitCPRegressor(
alpha=0.1, conformity_score=AbsoluteConformityScore(sym=sym)
)
mapie.fit(X_toy, y_toy)
with pytest.raises(ValueError, match="Invalid `cs_bound` value."):
mapie.predict(X_toy, cs_bound=cs_bound)

0 comments on commit a4814e5

Please sign in to comment.