matplotlib - Hierarchical clustering of heatmap in python -



matplotlib - Hierarchical clustering of heatmap in python -

i have nxm matri values range 0 20. heatmap using matplotlib , pcolor. i'd apply hierarchical clustering , dendogram using scipy. i'd re-order each dimension (rows , columns) in order show element similar (according clustering result). if matrix square (nxn) code like:

clustering = linkage(matrix, method="average") dendrogram(clustering, orientation='right')

how can obtain linkage matrix when dimensions different? have calculate manually each distance between every pair of elements?

python matplotlib heatmap hierarchical-clustering dendrogram

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -