We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8143e40 commit c0e686bCopy full SHA for c0e686b
sklearn/utils/extmath.py
@@ -140,8 +140,7 @@ def _fast_dot(A, B):
140
'Falling back to np.dot.', NonBLASDotWarning)
141
return np.dot(A, B)
142
143
- if ((min(A.shape) == 1) or (min(B.shape) == 1) or
144
- (A.ndim != 2) or (B.ndim != 2)):
+ if min(A.shape) == 1 or min(B.shape) == 1 or A.ndim != 2 or B.ndim != 2:
145
warnings.warn('Data must be 2D with more than one colum / row.'
146
'Falling back to np.dot', NonBLASDotWarning)
147
0 commit comments