8000 DOC add note about brute force nearest neighbors for string data (#11… · scikit-learn/scikit-learn@4cb0859 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cb0859

Browse files
amuellerjnothman
authored andcommitted
DOC add note about brute force nearest neighbors for string data (#11884)
Follow up on #7820.
1 parent 1dc3597 commit 4cb0859

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/faq.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ DBSCAN with Levenshtein distances::
222222
array([[0],
223223
[1],
224224
[2]])
225-
>>> dbscan(X, metric=lev_metric, eps=5, min_samples=2) # doctest: +SKIP
225+
>>> # We need to specify algoritum='brute' as the default assumes
226+
>>> # a continuous feature space.
227+
>>> dbscan(X, metric=lev_metric, eps=5, min_samples=2, algorithm='brute')
228+
... # doctest: +SKIP
226229
([0, 1], array([ 0, 0, -1]))
227230

228231
(This uses the third-party edit distance package ``leven``.)

0 commit comments

Comments
 (0)
0