sklearn agglomerative clustering linkage matrix

后端 未结 5 1546
长情又很酷
长情又很酷 2020-12-29 03:04

I\'m trying to draw a complete-link scipy.cluster.hierarchy.dendrogram, and I found that scipy.cluster.hierarchy.linkage is slower than sklearn.AgglomerativeClustering.

5条回答
  •  旧时难觅i
    2020-12-29 03:19

    I ran into the same problem when setting n_clusters. I think the problem is that if you set n_clusters, the distances don't get evaluated. If you set n_clusters = None and set a distance_threshold, then it works with the code provided on sklearn. I understand that this will probably not help in your situation but I hope a fix is underway.

提交回复
热议问题