Skip to content

Commit 7ffb55c

Browse files
authored
Merge pull request #192 from LGro/missing_distances_doc
add doc for missing distances support
2 parents e4346ae + d3deca7 commit 7ffb55c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/basic_hdbscan.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ distance, etc. Again, this is all fine as ``hdbscan`` supports a special
280280
metric called ``precomputed``. If you create the clusterer with the
281281
metric set to ``precomputed`` then the clusterer will assume that,
282282
rather than being handed a vector of points in a vector space, it is
283-
recieving an all pairs distance matrix.
283+
recieving an all pairs distance matrix. Missing distances can be
284+
indicated by ``numpy.inf``, which leads HDBSCAN to ignore these pairwise
285+
relationships as long as there exists a path between two points that
286+
contains defined distances (i.e. if there are too many distances
287+
missing, the clustering is going to fail).
284288

285289
.. code:: python
286290

0 commit comments

Comments
 (0)