楼主: tchenyunt
17824 1

求助,kmeans函数中的nstart参数 [推广有奖]

  • 0关注
  • 0粉丝

高中生

2%

还不是VIP/贵宾

-

威望
0
论坛币
52 个
通用积分
0
学术水平
0 点
热心指数
2 点
信用等级
0 点
经验
210 点
帖子
16
精华
0
在线时间
0 小时
注册时间
2009-3-14
最后登录
2013-8-29

楼主
tchenyunt 发表于 2009-3-18 22:20:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

参数定义:

xA numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns).
centersEither the number of clusters or a set of initial (distinct) cluster centres. If a number, a random set of (distinct) rows in x is chosen as the initial centres.
iter.maxThe maximum number of iterations allowed.
nstartIf centers is a number, how many random sets should be chosen?
algorithm

character: may be abbreviated.

x为输入的数据集,centers为聚类的个数或者是初始的类中心,那么这个nstart又表示什么意思呢?不明白。

请达人再次赐教。

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:kmeans nstart Start means mean 函数 参数 kmeans nstart

本帖被以下文库推荐

沙发
vrooadk 发表于 2009-3-19 12:34:00

say nstart=10, that means randomly starts kmeans algorithm 10 times and return the best. usually take nstart=20 or 25 unless you have very big dataset.

可以理解为重复做kmeans的次数,当然啦,每次center都是随机选取的。

已有 1 人评分论坛币 热心指数 收起 理由
crystal8832 + 10 + 1 热心帮助其他会员

总评分: 论坛币 + 10  热心指数 + 1   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-6 07:26