-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Traceback (most recent call last):
File "/home/dell/.local/lib/python3.8/site-packages/scipy/stats/_kde.py", line 223, in init
self.set_bandwidth(bw_method=bw_method)
File "/home/dell/.local/lib/python3.8/site-packages/scipy/stats/_kde.py", line 571, in set_bandwidth
self._compute_covariance()
File "/home/dell/.local/lib/python3.8/site-packages/scipy/stats/_kde.py", line 583, in _compute_covariance
self._data_cho_cov = linalg.cholesky(self._data_covariance,
File "/home/dell/.local/lib/python3.8/site-packages/scipy/linalg/_decomp_cholesky.py", line 89, in cholesky
c, lower = _cholesky(a, lower=lower, overwrite_a=overwrite_a, clean=True,
File "/home/dell/.local/lib/python3.8/site-packages/scipy/linalg/_decomp_cholesky.py", line 37, in _cholesky
raise LinAlgError("%d-th leading minor of the array is not positive "
numpy.linalg.LinAlgError: 1-th leading minor of the array is not positive definite
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "ret-unsupervised.py", line 121, in
global_thr = KDE(global_simi_scaled, default_thr=0.5, minimal_pos=0, min_thr=0.2, max_thr=0.8)
File "/home/dell/hb/EASE-main/utils/adaptive_threshold.py", line 7, in KDE
kde = gaussian_kde(kde_data)
File "/home/dell/.local/lib/python3.8/site-packages/scipy/stats/_kde.py", line 232, in init
raise linalg.LinAlgError(msg) from e
numpy.linalg.LinAlgError: The data appears to lie in a lower-dimensional subspace of the space in which it is expressed. This has resulted in a singular data covariance matrix, which cannot be treated using the algorithms implemented in gaussian_kde. Consider performing principle component analysis / dimensionality reduction and using gaussian_kde with the transformed data.