Permalink
Browse files

Cosmit: PEP8 :P

  • Loading branch information...
1 parent a2170a5 commit 46bbddd2aeb7c79bca96b547e6ce8dffb8804fc8 @GaelVaroquaux GaelVaroquaux committed Jul 5, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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

0 comments on commit 46bbddd

Please sign in to comment.