Skip to content

Commit 7c168ce

Browse files
committed
MNT fix failing slope test
1 parent afdba2a commit 7c168ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

skglm/tests/test_penalties.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ def test_slope():
9797
# q = 0.1
9898
# alphas = lambda_sequence(
9999
# X, y, fit_intercept=False, reg=alpha / alpha_max, q=q)
100-
clf = SlopeEst(alpha=0.01, fit_intercept=False).fit(X, y)
100+
clf = SlopeEst(
101+
alpha=0.01,
102+
fit_intercept=False,
103+
scaling = "none",
104+
centering = "none"
105+
).fit(X, y)
101106
alphas = clf.lambda_
102107
ours = GeneralizedLinearEstimator(
103108
penalty=SLOPE(clf.alpha * alphas),

0 commit comments

Comments
 (0)