8000 Made regression test easier by adding small value to main diagonal · scikit-learn/scikit-learn@030763e · GitHub
[go: up one dir, main page]

Skip to content

Commit 030763e

Browse files
committed
Made regression test easier by adding small value to main diagonal
1 parent c0f60b6 commit 030763e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/utils/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_arpack_eigsh_initialization():
137137

138138
A = random_state.rand(50, 50)
139139
A = np.dot(A.T, A) # create s.p.d. matrix
140-
A = graph_laplacian(A)
140+
A = graph_laplacian(A) + 1e-7 * np.identity(A.shape[0])
141141
k = 5
142142

143143
# Test if eigsh is working correctly

0 commit comments

Comments
 (0)
0