问题
I have a transaction dataset with 250000 transactions (rows) and 2183 items (columns). I wanna transform it to a sparse matrix and then do hierarchical cluster on it. I tried package 'sparcl', but it seems it doesn't work on sparse matrix. Any suggestion about how to solve this problem? Or any other package I can use to do cluster analysis on sparse matrix? Thanks!
回答1:
Affinity propagation, as implemented in the apcluster package, supports sparse matrices since version 1.4.0. So please give it a try.
回答2:
Would affinity propagation work with your data? It appears to handle sparse matrices.
来源:https://stackoverflow.com/questions/12009078/cluster-analysis-in-r-on-large-sparse-matrix