Skip to content

Commit c9ad75e

Browse files
author
Joao Felipe Rocha
committed
Removed balltree_cosine test since we don't have distance implemented.
1 parent 64e61aa commit c9ad75e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_knn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ def test_duplicate_data_many():
6565
build_graph(np.vstack([data, data[:21]]), n_pca=None, decay=10, thresh=1e-4)
6666

6767

68-
def test_balltree_cosine():
69-
with assert_warns_message(
70-
UserWarning,
71-
"Metric cosine not valid for `sklearn.neighbors.BallTree`. Graph instantiation may be slower than normal.",
72-
):
73-
build_graph(data, n_pca=20, decay=10, distance="cosine", thresh=1e-4)
68+
# def test_balltree_cosine():
69+
# with assert_warns_message(
70+
# UserWarning,
71+
# "Metric cosine not valid for `sklearn.neighbors.BallTree`. Graph instantiation may be slower than normal.",
72+
# ):
73+
# build_graph(data, n_pca=20, decay=10, distance="cosine", thresh=1e-4)
7474

7575

7676
def test_k_too_large():

0 commit comments

Comments
 (0)