Skip to content

Commit f245587

Browse files
author
Vianney Taquet
committed
Add bias of y in last check only
1 parent 7c7eb55 commit f245587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapie/tests/test_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
X_toy = np.array([0, 1, 2, 3, 4, 5]).reshape(-1, 1)
3131
y_toy = np.array([5, 7, 9, 11, 13, 15])
3232
X, y = make_regression(
33-
n_samples=500, n_features=10, noise=1.0, random_state=1, bias=1e3
33+
n_samples=500, n_features=10, noise=1.0, random_state=1
3434
)
3535
k = np.ones(shape=(5, X.shape[1]))
3636
METHODS = ["naive", "base", "plus", "minmax"]
@@ -495,5 +495,5 @@ def test_gammaconformityscore(
495495
conformity_score=conformity_score,
496496
**STRATEGIES[strategy]
497497
)
498-
mapie_reg.fit(X, y)
498+
mapie_reg.fit(X, y + 1e3)
499499
_, y_pis = mapie_reg.predict(X, alpha=0.05)

0 commit comments

Comments
 (0)