Skip to content

Commit 0ee5568

Browse files
committed
Cosmit: PEP8
1 parent 6c3f16d commit 0ee5568

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sklearn/tree/tree.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,17 @@ def recursive_partition(X, X_argsorted, y, sample_mask, depth,
337337
if sample_mask is None:
338338
sample_mask = np.ones((X.shape[0],), dtype=np.bool)
339339
elif len(sample_mask) != len(y):
340-
raise ValueError("Length of sample_mask=%s does not match number of samples=%s" % (len(sample_mask), len(y)))
340+
raise ValueError(
341+
"Length of sample_mask=%s does not match number of samples=%s"
342+
% (len(sample_mask), len(y)))
341343

342344
if X_argsorted is None:
343345
X_argsorted = np.asfortranarray(
344346
np.argsort(X.T, axis=1).astype(np.int32).T)
345347
elif len(X_argsorted) != len(y):
346-
raise ValueError("Length of X_argsorted=%s does not match number of samples=%s" % (len(X_argsorted), len(y)))
348+
raise ValueError(
349+
"Length of X_argsorted=%s does not match number of samples=%s"
350+
% (len(X_argsorted), len(y)))
347351

348352
# Pre-allocate some space
349353
if max_depth <= 10:

0 commit comments

Comments
 (0)