Skip to content

Commit 27ba663

Browse files
author
Aaron Meyer
committed
Avoid pathological cases
1 parent ef4e0e1 commit 27ba663

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tensorly/utils/tests/test_jointdiag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_joint_matrix_diagonalization():
1515
k = 14
1616
d = 10
1717

18-
rng = np.random.RandomState()
18+
rng = np.random.RandomState(1)
1919
mixing = rng.randn(d, d)
2020
diags = np.zeros((d, d, k))
2121
synthetic = np.zeros((d, d, k))
@@ -38,4 +38,4 @@ def test_joint_matrix_diagonalization():
3838
diags = diags[idx, idx, :]
3939

4040
# Test that the diagonalized matrices are close to the starting diagonal matrices
41-
np.testing.assert_allclose(diags, diag_est, atol=1e-10)
41+
np.testing.assert_allclose(diags, diag_est, atol=1e-7, rtol=1e-7)

0 commit comments

Comments
 (0)