Skip to content

Commit

Permalink
Cosmit: PEP8 :P
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelVaroquaux committed Jul 5, 2012
1 parent a2170a5 commit 46bbddd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sklearn/linear_model/least_angle.py
Expand Up @@ -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

Expand Down

0 comments on commit 46bbddd

Please sign in to comment.