Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cosmit: PEP8 :P

  • Loading branch information...
commit 46bbddd2aeb7c79bca96b547e6ce8dffb8804fc8 1 parent a2170a5
@GaelVaroquaux GaelVaroquaux authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 sklearn/linear_model/least_angle.py
View
5 sklearn/linear_model/least_angle.py
@@ -221,10 +221,11 @@ def lars_path(X, y, Xy=None, Gram=None, max_iter=500,
i = 0
L_ = L[:n_active, :n_active].copy()
while not np.isfinite(AA):
- L_.flat[::n_active + 1] += (2**i) * eps
+ L_.flat[::n_active + 1] += (2 **i) * eps
least_squares, info = solve_cholesky(L_,
sign_active[:n_active], lower=True)
- AA = 1. / np.sqrt(np.sum(least_squares * sign_active[:n_active]))
+ AA = 1. / np.sqrt(np.sum(least_squares
+ * sign_active[:n_active]))
i += 1
least_squares *= AA
Please sign in to comment.
Something went wrong with that request. Please try again.