Skip to content

Commit fcb9737

Browse files
committed
Update error message as suggested by issue #82 .
1 parent 2d62536 commit fcb9737

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hdbscan/hdbscan_.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ def _hdbscan_sparse_distance_matrix(X, min_samples=5, alpha=1.0,
172172
if csgraph.connected_components(mutual_reachability_, directed=False,
173173
return_labels=False) > 1:
174174
raise ValueError('Sparse distance matrix has multiple connected'
175-
' components!\nRun hdbscan on each component.')
175+
' components!\nThat is, there exist groups of points '
176+
'that are completely disjoint -- there are no distance '
177+
'relations connecting them\n'
178+
'Run hdbscan on each component.')
176179

177180
# Compute the minimum spanning tree for the sparse graph
178181
sparse_min_spanning_tree = csgraph.minimum_spanning_tree(

0 commit comments

Comments
 (0)