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
Post a Comment