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 8347580 commit 7a485afCopy full SHA for 7a485af
scikits/learn/utils/fixes.py
@@ -81,7 +81,7 @@ def qr_economic(A, **kwargs):
81
"""
82
import scipy.linalg
83
# trick: triangular solve has introduced in 0.9
84
- if not hasattr(scipy.linalg, 'triangular_solve'):
+ if hasattr(scipy.linalg, 'triangular_solve'):
85
return scipy.linalg.qr(A, mode='economic', **kwargs)
86
else:
87
return scipy.linalg.qr(A, econ=True, **kwargs)
0 commit comments