We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4dc60c commit 6d0e89aCopy full SHA for 6d0e89a
tests/cluster/test_spectral.py
@@ -49,8 +49,8 @@ def test_spectral5():
49
50
51
def test_spectral6():
52
- m = 10
53
- a = jnp.ones((m, m))
+ m = 20
+ a = 100*jnp.ones((m, m))
54
z = jnp.zeros((m, m))
55
az = jnp.hstack((a, z))
56
za = jnp.hstack((z, a))
@@ -60,7 +60,7 @@ def test_spectral6():
60
print("True Labels: ", true_labels)
61
affinity = BCOO.fromdense(affinity)
62
k = 2
63
- res = spectral.normalized_symmetric_sparse_fast_k_jit(cnb.KEYS[2], affinity, k)
+ res = spectral.normalized_symmetric_sparse_fast_k_jit(cnb.KEYS[1], affinity, k)
64
pred_labels = res.assignment
65
print("Predicted Labels: ", pred_labels)
66
error = cluster.clustering_error(true_labels, pred_labels)
0 commit comments