Skip to content

Commit 6d0e89a

Browse files
committed
fix test
1 parent d4dc60c commit 6d0e89a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/cluster/test_spectral.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def test_spectral5():
4949

5050

5151
def test_spectral6():
52-
m = 10
53-
a = jnp.ones((m, m))
52+
m = 20
53+
a = 100*jnp.ones((m, m))
5454
z = jnp.zeros((m, m))
5555
az = jnp.hstack((a, z))
5656
za = jnp.hstack((z, a))
@@ -60,7 +60,7 @@ def test_spectral6():
6060
print("True Labels: ", true_labels)
6161
affinity = BCOO.fromdense(affinity)
6262
k = 2
63-
res = spectral.normalized_symmetric_sparse_fast_k_jit(cnb.KEYS[2], affinity, k)
63+
res = spectral.normalized_symmetric_sparse_fast_k_jit(cnb.KEYS[1], affinity, k)
6464
pred_labels = res.assignment
6565
print("Predicted Labels: ", pred_labels)
6666
error = cluster.clustering_error(true_labels, pred_labels)

0 commit comments

Comments
 (0)