【发布时间】:2018-11-29 15:40:01
【问题描述】:
如果k=1,如何计算 HAC 聚类的轮廓系数的值(所以,1 个聚类中的所有数据)?轮廓系数的范围为 -1 到 1,但对于单例 (k=maximum)(只有 1 个数据的集群),轮廓系数为 0。 k=1的轮廓系数是0还是-1或1?轮廓系数的公式为
here.
SC(i) = (b(i)-a(i))/max(a(i), b(i))
a(i) = Average distance of object with other object in one cluster.
b(i) = Minimum Average distance of object with other object in other cluster.
*对不起我的英语不好
【问题讨论】:
-
您正在使用的任何特定软件(r、python、c++ 等),在您的问题中添加该标签以增加可访问性。
-
python-2.7.谢谢
-
Pyhton 2.7 即将推出,开始使用 python3 版本,无论如何祝你好运
标签: python-2.7 cluster-analysis evaluation hierarchical-clustering silhouette