永发信息网

r语言k-means clustering相似度图层怎么输出

答案:1  悬赏:0  手机版
解决时间 2021-04-04 04:20
  • 提问者网友:愿为果
  • 2021-04-03 23:47
r语言k-means clustering相似度图层怎么输出
最佳答案
  • 五星知识达人网友:独钓一江月
  • 2021-04-04 00:27
This page demonstrates k-means clustering with R.

> newiris <- iris
> newiris$Species <- NULL
Apply kmeans to newiris, and store the clustering result in kc. The cluster number is set to 3.
> (kc <- kmeans(newiris, 3))
K-means clustering with 3 clusters of sizes 38, 50, 62
Cluster means:
Sepal.Length Sepal.Width Petal.Length Petal.Width
1 6.850000 3.073684 5.742105 2.071053
2 5.006000 3.428000 1.462000 0.246000
3 5.901613 2.748387 4.393548 1.433871
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯