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 b86f3d5 commit f36cba5Copy full SHA for f36cba5
sklearn/utils/extmath.py
@@ -104,8 +104,7 @@ def _fast_dot(A, B):
104
'Falling back to np.dot.', NonBLASDotWarning)
105
return np.dot(A, B)
106
107
- if ((A.ndim == 1 or B.ndim == 1) or
108
- (min(A.shape) == 1) or (min(B.shape) == 1) or
+ if ((min(A.shape) == 1) or (min(B.shape) == 1) or
109
(A.ndim != 2) or (B.ndim != 2)):
110
warnings.warn('Data must be 2D with more than one colum / row.'
111
'Falling back to np.dot', NonBLASDotWarning)
0 commit comments