为什么输出h2o.kmeans函数中没有集群对象?

Fed*_*ina 3 r k-means h2o

我想h2o.kmeansh2o包中使用函数.这是我的代码

clust <- h2o.kmeans(data = waterM, centers = 30,  key = "kmeansKey", iter.max = 1000, normalize = T, init = "none", dropNACols = F );
summary(clust@model);
Run Code Online (Sandbox Code Playgroud)

输出是

            Length Class  Mode   
params           6  -none- list   
centers      25560  -none- numeric
withinss        30  -none- numeric
tot.withinss     1  -none- numeric
size            30  -none- numeric
iter             1  -none- numeric
Run Code Online (Sandbox Code Playgroud)

为什么没有cluster包含整数向量的对象(从1:k),它表示每个点被分配到的簇?

Gun*_*run 8

当你运行h2o.kmeans时,它只是构建模型.

您必须使用已构建的模型运行h2o.predict方法以获取所需的数据.