You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to plot the output of fast_hdbscan.cluster_trees.condense_tree using the hdbscan.plots.CondensedTree class .
I tried converting the result like so:
You may have ended up with a condensed forest instead of a condensed tree. That shouldn't really be possible, but perhaps there is a bug that makes it possible? I would need to see the actual tree data to diagnose...
Actually, I think I found the issue - it was because I was testing out the new sample weights functionality and I had a sample weight instance that was larger than the specified min_cluster_size.
Maybe throwing a warning for this in the initial tree construction would be beneficial?
Hi all,
Im trying to plot the output of fast_hdbscan.cluster_trees.condense_tree using the hdbscan.plots.CondensedTree class .
I tried converting the result like so:
ct_raw = np.rec.fromarrays((ct[0], ct[1], ct[2], ct[3]), dtype=[(' parent', np.intp),('child', np.intp),('lambda_val', float),('child_size', np.intp)])
Then passing it to the constructor - CondensedTree(ct_raw) - but i get an error that there are some parent nodes without children in the ct_raw array.
Specifically, the .max() call below (from the hdbscan.plots.CondensedTree.get_plot_data) throws the exception that its being called on an empty array:
`
for c in range(last_leaf, root - 1, -1):
Do you have any pointers how to convert between the two representations or how to change the get_plot_data function?
The text was updated successfully, but these errors were encountered: