Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5180029

Browse files
committed
Cosmetic np.abs -> abs
1 parent e976967 commit 5180029

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
@@ -197,7 +197,7 @@ def lars_path(X, y, Xy=None, Gram=None, max_iter=500,
197197

198198
alpha[0] = C / n_samples
199199
if alpha[0] <= alpha_min: # early stopping
200-
if not (np.abs(alpha[0] - alpha_min) < tiny):
200+
if not (abs(alpha[0] - alpha_min) < tiny):
201201
# interpolation factor 0 <= ss < 1
202202
if n_iter > 0:
203203
# In the first iteration, all alphas are zero, the formula

0 commit comments

Comments
 (0)