从 R 中的 Clustree 获取微簇的数量
Getting number of micro cluster from Clustree in R
我无法从 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 不提供微集群的数量。有帮助吗?
a_greater_than_five <- ifelse(a > 5, 真, 假)
我无法从 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 不提供微集群的数量。有帮助吗?
a_greater_than_five <- ifelse(a > 5, 真, 假)