Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ndawe committed Apr 22, 2014
1 parent 4ae7546 commit addccdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sklearn/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ def cross_val_score(estimator, X, y=None, sample_weight=None,
clone(estimator), X, y, sample_weight, scorer,
train, test, verbose, None,
fit_params)
for train, test in cv)
for train, test in cv)
return np.array(scores)[:, 0]


Expand Down
4 changes: 2 additions & 2 deletions sklearn/learning_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def _incremental_fit_estimator(estimator, X, y, sample_weight,
train_subset = train[:n_train_samples]
X_train, y_train, sample_weight_train = _safe_split(
estimator, X, y, sample_weight, train_subset)
X_partial_train, y_partial_train, sample_weight_partial_train = _safe_split(
estimator, X, y, sample_weight, partial_train)
X_partial_train, y_partial_train, sample_weight_partial_train = \
_safe_split(estimator, X, y, sample_weight, partial_train)
X_test, y_test, sample_weight_test = _safe_split(
estimator, X, y, sample_weight, test, train_subset)

Expand Down

0 comments on commit addccdf

Please sign in to comment.