Description Usage Arguments Value Examples
View source: R/testEvolutiveDynamicConfluenceFastKmeans.R
Evolving Clustering
1 2 | testEvolutiveDynamicConfluenceFastKmeans(file, samplesToInitMeta,
parameters)
|
file |
path to CSV file with the data |
samplesToInitMeta |
number of samples to init the data |
parameters |
parameters to use |
A list with the error, the elapsed time and the final clusterModel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | tf = tempfile()
iris2 = iris
iris2$Species = as.numeric(iris2$Species)
iris2 <- iris2[sample(nrow(iris2)),]
write.table(iris2,tf,row.names=FALSE, col.names=FALSE,sep=",")
samplesToInitMeta=50
parameters=list(memory=2,KinitMclust=3)
resultsA=testEvolutiveDynamicConfluenceFastKmeans(tf,samplesToInitMeta,parameters)
resultsA$clusterModel$fit
plot(iris2[,-5],col=resultsA$clusterModel$fit)
parameters<-list(memory=0.01,KinitMclust=3)
resultsB=testEvolutiveDynamicConfluenceFastKmeans(tf,samplesToInitMeta,parameters)
resultsB$clusterModel$fit
plot(iris2[,-5],col=resultsB$clusterModel$fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.