Skip to content

Commit dbfb25e

Browse files
committed
FIX heisenfailure in test_lasso_lars_path_length
Tentative fix for scikit-learn#3370: random failure under Python 32 bit and Windows.
1 parent 842d80a commit dbfb25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/linear_model/least_angle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def lars_path(X, y, Xy=None, Gram=None, max_iter=500,
202202

203203
alpha[0] = C / n_samples
204204
if alpha[0] <= alpha_min: # early stopping
205-
if not (abs(alpha[0] - alpha_min) < tiny):
205+
if not (abs(alpha[0] - alpha_min) < 10 * tiny32):
206206
# interpolation factor 0 <= ss < 1
207207
if n_iter > 0:
208208
# In the first iteration, all alphas are zero, the formula

0 commit comments

Comments
 (0)