我已经使用skmeans聚类了大型数据集(~1m观察值和~200个特征),我想验证结果。问题是根据教程,skmeans生成适合剪影计算的对象,但是如果我按照教程我得到错误消息。可能有人解释这个错误来自哪里?两个对象属于同一类但绘图工作原理hparty,但不是我的聚类。
class(hparty)
[1] "skmeans" "pclust"
hparty
A hard spherical k-means partition of 1504 objects into 5 classes.
Class sizes: 311, 278, 131, 429, 355
Call: skmeans(x = x, k = 5)
class(seg.sk10)
[1] "skmeans" "pclust"
seg.sk10
A hard spherical k-means partition of 1488441 objects into 10 classes.
Class sizes: 79007, 81885, 219730, 58998, 107383, 161908, 98570, 132689, 395367, 152904
Call: skmeans(x = duom.1, k = k)
plot(silhouette(seg.sk10))
Error in FUN(left, right) : non-numeric argument to binary operator