We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ed7f74 + c331a90 commit 64b055eCopy full SHA for 64b055e
hdbscan/plots.py
@@ -43,7 +43,7 @@ def _get_leaves(condensed_tree):
43
cluster_tree = condensed_tree[condensed_tree['child_size'] > 1]
44
if cluster_tree.shape[0] == 0:
45
# Return the only cluster, the root
46
- return condensed_tree['parent'].min()
+ return [condensed_tree['parent'].min()]
47
48
root = cluster_tree['parent'].min()
49
return _recurse_leaf_dfs(cluster_tree, root)
0 commit comments