I have used hierarchical clustering to create a tree of clusters.
This results in:
dic = {6: {2: 2, 5: {3: 3, 4: {0: 0, 1: 1}}}}
lists in list according to clusters:
[ [[6]],
[[2], [5]],
[[2], [3], [4]],
[[2], [3], [0], [1]] ]
lists in list according to values:
[ [[2, 3, 0, 1]],
[[2], [3, 0, 1]],
[[2], [3], [0, 1]],
[[2], [3], [0], [1]] ]
What I want to end up with is 'lists in list according to values'.
Thanks