Skip to content

Commit ff37bec

Browse files
committed
Explicitly use svd_solver='full' for repro unit test
1 parent d0adddd commit ff37bec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/aspire/numeric/complex_pca/validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
FLOAT_DTYPES = (np.float64, np.float32, np.float16)
2323

24+
2425
def _num_samples(x):
2526
"""Return number of samples in array-like x."""
2627
message = "Expected sequence or array-like, got %s" % type(x)

tests/test_complexPCA.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def testLargeFitTransform(self):
5252
Smoke test a more realistic size.
5353
"""
5454

55-
pca = ComplexPCA(n_components=self.components_large, copy=False)
55+
pca = ComplexPCA(
56+
n_components=self.components_large, copy=False, svd_solver="full"
57+
)
5658

5759
# Input data matrix X should be (n_samples, m_features)
5860
X = self.X_large

0 commit comments

Comments
 (0)