DOC add note about brute force nearest neighbors for string data
Follow up on
@@ -222,7 +222,10 @@ DBSCAN with Levenshtein distances::
array([[0],
[1],
[2]])
- >>> dbscan(X, metric=lev_metric, eps=5, min_samples=2) # doctest: +SKIP
+ >>> # We need to specify algoritum='brute' as the default assumes
+ >>> # a continuous feature space.
+ >>> dbscan(X, metric=lev_metric, eps=5, min_samples=2, algorithm='brute')
+ ... # doctest: +SKIP
([0, 1], array([ 0, 0, -1]))
(This uses the third-party edit distance package ``leven``.)
