Skip to content

Commit c0e686b

Browse files
committed
COSMIT: no need for parentheses.
1 parent 8143e40 commit c0e686b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/utils/extmath.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ def _fast_dot(A, B):
140140
'Falling back to np.dot.', NonBLASDotWarning)
141141
return np.dot(A, B)
142142

143-
if ((min(A.shape) == 1) or (min(B.shape) == 1) or
144-
(A.ndim != 2) or (B.ndim != 2)):
143+
if min(A.shape) == 1 or min(B.shape) == 1 or A.ndim != 2 or B.ndim != 2:
145144
warnings.warn('Data must be 2D with more than one colum / row.'
146145
'Falling back to np.dot', NonBLASDotWarning)
147146
return np.dot(A, B)

0 commit comments

Comments
 (0)