Cluster Analysis in R on large sparse matrix

和自甴很熟 提交于 2019-12-10 17:56:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!