Different representations of dendrograms
I have a dendrogram represented in a format I don't understand:
(K_5:1.000030e+00,((K_1:2.000000e-05,(K_2:1.000000e-05,K_3:1.000000e-05):1.000000e-05):1.000000e-05,K_4:3.000000e-05)0.806:1.000000e+00):0.000000e+00;
I am not sure how to interpret the above. It is an output of hierarchical clustering.
K_1, K_2, K_3, K_4, K_5 are the data points.
I have other dendrograms represented in the following format:
[x_1,x_2,x_3,x_4,x_5] (we start with one big cluster and split a cluster at each step)
[x_1,x_2][x_3,x_4,x_5]
[x_1,x_2][x_3,x_5][x_4]
[x_1][x_2][x_3,x_5][x_4]
[x_1][x_2][x_3][x_5][x_4]
I want a way to convert between these two representations.
Topic hierarchical-data-format clustering
Category Data Science