Skip to content

Commit

Permalink
COSMIT use zip instead of next in generator expression (scikit-learn#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman authored and massich committed Jul 13, 2017
1 parent d50a915 commit ce6b00a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sklearn/multiclass.py
Expand Up @@ -267,9 +267,8 @@ def partial_fit(self, X, y, classes=None):
columns = (col.toarray().ravel() for col in Y.T)

self.estimators_ = Parallel(n_jobs=self.n_jobs)(
delayed(_partial_fit_binary)(self.estimators_[i], X,
next(columns))
for i in range(self.n_classes_))
delayed(_partial_fit_binary)(estimator, X, column)
for estimator, column in izip(self.estimators_, columns))

return self

Expand Down

0 comments on commit ce6b00a

Please sign in to comment.