0

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

4

1 に答える 1

0

a_greater_than_five <- ifelse(a > 5, TRUE, FALSE)

于 2016-06-01T16:11:18.133 に答える