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 0659ee7 commit e8e3aabCopy full SHA for e8e3aab
spectral/algorithms/algorithms.py
@@ -745,9 +745,9 @@ def cov(self, C):
745
746
@property
747
def inv_cov(self):
748
- '''Property method returning the inverse of the covariance matrix.'''
+ '''Property method returning the pseudo-inverse of the covariance matrix.'''
749
if self._inv_cov is None:
750
- self._inv_cov = np.linalg.inv(self._cov)
+ self._inv_cov = np.linalg.pinv(self._cov)
751
return self._inv_cov
752
753
def reset_derived_stats(self):
0 commit comments