Skip to content

Commit e29d727

Browse files
authored
FIX TST test_precomputed_nearest_neighbors_filtering[60] failure on CI (scikit-learn#31262)
1 parent f0cbbbb commit e29d727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/cluster/tests/test_spectral.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ def test_precomputed_nearest_neighbors_filtering(global_random_seed):
106106
X, y = make_blobs(
107107
n_samples=250,
108108
random_state=global_random_seed,
109-
centers=[[1, 1], [-1, -1]],
109+
centers=[[1, 1, 1], [-1, -1, -1]],
110110
cluster_std=0.01,
111111
)
112112

113113
n_neighbors = 2
114114
results = []
115115
for additional_neighbors in [0, 10]:
116116
nn = NearestNeighbors(n_neighbors=n_neighbors + additional_neighbors).fit(X)
117-
graph = nn.kneighbors_graph(X, mode="connectivity")
117+
graph = nn.kneighbors_graph(X, mode="distance")
118118
labels = (
119119
SpectralClustering(
120120
random_state=global_random_seed,

0 commit comments

Comments
 (0)