We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5783861 commit b541ff0Copy full SHA for b541ff0
test/test_knn.py
@@ -85,7 +85,8 @@ def test_bandwidth_no_decay():
85
@raises(ValueError)
86
def test_knn_no_knn_no_bandwidth():
87
build_graph(data, graphtype='knn',
88
- knn=None, bandwidth=None)
+ knn=None, bandwidth=None,
89
+ thresh=1e-4)
90
91
92
#####################################################
@@ -328,6 +329,14 @@ def test_shortest_path():
328
329
np.testing.assert_equal(P, G.shortest_path())
330
331
332
+@raises(NotImplementedError)
333
+def test_shortest_path_decay():
334
+ data_small = data[np.random.choice(
335
+ len(data), len(data) // 4, replace=False)]
336
+ G = build_graph(data_small, knn=5, decay=15)
337
+ G.shortest_path()
338
+
339
340
####################
341
# Test API
342
0 commit comments