我无法从 Clustree 检索微集群的数量。以下是代码:
library(streamMOA)
data <- read.csv("data.csv", sep = ",", header = TRUE)
stream <- DSD_Memory(data)
clustree <- DSC_ClusTree(maxHeight = 3)
reset_stream(stream)
update(clustree, stream, 200)
现在如果打印 clustree 对象,我得到:
print(clustree)
ClusTree
Class: DSC_ClusTree, DSC_Micro, DSC_MOA, DSC
Number of micro-clusters: 20
但是,clustree&description、clustree$options 或 clustree&javaObj 没有给出微集群的数量。有什么帮助吗?