层次聚类与K均值聚类有何不同?
答案:1 悬赏:0 手机版
解决时间 2021-11-08 03:27
- 提问者网友:难遇难求
- 2021-11-07 03:54
层次聚类与K均值聚类有何不同?
最佳答案
- 五星知识达人网友:有你哪都是故乡
- 2021-11-07 05:08
层次聚类(hierarchical clustering)
这里用最简单的实例说明层次聚类原理和应用方法。
层次聚类是基于距离的聚类方法,MATLAB中通过pdist、linkage、dendrogram、cluster等函数来完成。
K-均值聚类
K-means聚类算法采用的是将N*P的矩阵X划分为K个类,使得所有类内对象与该类中心点之间的距离和最小。
IDX = KMEANS(X, K) partitions the points in the
N-by-P data matrix X
into K
clusters. This partition minimizes the sum, over
all clusters, of
the
within-cluster sums of point-to-cluster-centroid distances.
这里用最简单的实例说明层次聚类原理和应用方法。
层次聚类是基于距离的聚类方法,MATLAB中通过pdist、linkage、dendrogram、cluster等函数来完成。
K-均值聚类
K-means聚类算法采用的是将N*P的矩阵X划分为K个类,使得所有类内对象与该类中心点之间的距离和最小。
IDX = KMEANS(X, K) partitions the points in the
N-by-P data matrix X
into K
clusters. This partition minimizes the sum, over
all clusters, of
the
within-cluster sums of point-to-cluster-centroid distances.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯