Permalink
Browse files

FIX: py3k's zip is not subscriptable

  • Loading branch information...
1 parent 1bd911e commit 6a973ddb4ba367dfe0f9eaf6d732d3a1377d05c0 @ogrisel ogrisel committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sklearn/linear_model/least_angle.py
@@ -729,7 +729,7 @@ def fit(self, X, y):
max_iter=self.max_iter,
eps=self.eps)
for train, test in cv)
- all_alphas = np.concatenate(zip(*cv_paths)[0])
+ all_alphas = np.concatenate(list(zip(*cv_paths))[0])
all_alphas.sort()
mse_path = np.empty((len(all_alphas), len(cv_paths)))

0 comments on commit 6a973dd

Please sign in to comment.