Skip to content

Commit

Permalink
Merge pull request #192 from LGro/missing_distances_doc
Browse files Browse the repository at this point in the history
add doc for missing distances support
  • Loading branch information
lmcinnes committed Apr 13, 2018
2 parents e4346ae + d3deca7 commit 7ffb55c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/basic_hdbscan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,11 @@ distance, etc. Again, this is all fine as ``hdbscan`` supports a special
metric called ``precomputed``. If you create the clusterer with the
metric set to ``precomputed`` then the clusterer will assume that,
rather than being handed a vector of points in a vector space, it is
recieving an all pairs distance matrix.
recieving an all pairs distance matrix. Missing distances can be
indicated by ``numpy.inf``, which leads HDBSCAN to ignore these pairwise
relationships as long as there exists a path between two points that
contains defined distances (i.e. if there are too many distances
missing, the clustering is going to fail).

.. code:: python
Expand Down

0 comments on commit 7ffb55c

Please sign in to comment.