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 では、マイクロ クラスタの数はわかりません。何か助けはありますか?