R中的数据流

时间:2016-10-24 07:39:23

标签: r cluster-analysis

任何一个细节都可以解决R中数据流的问题。以下代码包含与stream,streamMOA,ff,devtools一起安装的软件包。我正在显示零微集群和零宏集群。任何人都可以指导我吗?

k <- read.table("three hours from 11am 16_08_2016_data.txt",col.names=c("H", "T"))
myffdf <- as.ffdf(k) 
myffdf <- myffdf[c("H","T")] 
mydatastream <- DSD_FFDFstream(x = myffdf, k = 100, loop=TRUE) 
mydatastream 
FF Data Stream 
Class: DSD_FFDFstream, DSD_R, DSD 
With 100 clusters in 2 dimensions Contains 5400 data points - currently at position 1 - loop is TRUE 

#### Cluster (first part) > myclusteringmodel <- DSC_CluStream(k = 10) 
myclusteringmodel 
CluStream + k-Means (weighted) 
Class: DSC_TwoStage, DSC_Macro, DSC Number of micro-clusters: 0 Number of macro-clusters: 0 

kmeans <- DSC_Kmeans(3) > recluster(kmeans, myclusteringmodel) 
myclusteringmodel 

CluStream + k-Means (weighted) 
Class: DSC_TwoStage, DSC_Macro, DSC Number of micro-clusters: 0 Number of macro-clusters: 0

0 个答案:

没有答案