python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How can I construct a scipy linkage matrix given a binary tree?
I know there's the to_tree() method to convert a linkage matrix to a tree, but how can I do the opposite? Specifically, given a simple nested list representing a binary tree, how do I obtain the corre...
Sten L
Votes: 0
Answers: 1
how to get automaticaly the number of colors and the colors returned from a dendrogram clustering hierarchy?
scikit-learn gives an example of python code to generate a dendogram. I copy/paste this code bellow. This code generates a dendogram. This dendogram display 3 differents colors: blue, green, and orang...
an ch
Votes: 0
Answers: 1
Error in .rect_dendrogram(dend, k = k, palette = rect_border, rect_fill = rect_fill, : k must be between 2 and 97
I am trying to estimate a cluster dendrogram in R for a structural topic model I produced with 98 topics.
I first ran the following which worked well:
res.hc <- eclust(scale(out_corr$cor), "hc...
md_14
Votes: 0
Answers: 1
How to label the leaves of a dendrogram in hclust in R using categorical variables from another column in the same dataframe
I would like to change the default labels for the leaves of a dendrogram to match a categorical variable column in a dataframe generated using dplyr group_by and summarise functions. This is a screens...
JohnJ
Votes: 0
Answers: 1