Skip to content

Commit f36cba5

Browse files
author
dengemann
committed
FIX: superfluous check
1 parent b86f3d5 commit f36cba5

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
@@ -104,8 +104,7 @@ def _fast_dot(A, B):
104104
'Falling back to np.dot.', NonBLASDotWarning)
105105
return np.dot(A, B)
106106

107-
if ((A.ndim == 1 or B.ndim == 1) or
108-
(min(A.shape) == 1) or (min(B.shape) == 1) or
107+
if ((min(A.shape) == 1) or (min(B.shape) == 1) or
109108
(A.ndim != 2) or (B.ndim != 2)):
110109
warnings.warn('Data must be 2D with more than one colum / row.'
111110
'Falling back to np.dot', NonBLASDotWarning)

0 commit comments

Comments
 (0)