1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: =?utf-8?q?Brigitta_Sip=C5=91cz?= <bsipocz@gmail.com>
Date: Tue, 16 Aug 2022 22:27:55 -0700
Subject: Update deprecated usage of scipy arguments
URL: https://github.com/astroML/astroML/pull/266
Closes: #1063526
---
astroML/dimensionality/iterative_pca.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/astroML/dimensionality/iterative_pca.py b/astroML/dimensionality/iterative_pca.py
index 32dc468..a12eed4 100644
--- a/astroML/dimensionality/iterative_pca.py
+++ b/astroML/dimensionality/iterative_pca.py
@@ -124,7 +124,7 @@ def iterative_pca(X, M, n_ev=5, n_iter=15, norm=None, full_output=False):
VWx = np.dot(VT[:n_ev], (notM * X_centered).T)
for i in range(n_samples):
VWV = np.dot(VT[:n_ev], (notM[i] * VT[:n_ev]).T)
- coeffs[i] = solve(VWV, VWx[:, i], sym_pos=True, overwrite_a=True)
+ coeffs[i] = solve(VWV, VWx[:, i], assume_a="pos", overwrite_a=True)
X_fill = mu + np.dot(coeffs, VT[:n_ev])
X_recons[M] = X_fill[M]
|