Displaying 1 result from an estimated 1 matches for "data_unclean".
2010 Jan 11
1
K-means recluster data with given cluster centers
...sets can be smaller.
What am I doing wrong? Is there a other way to cluster new data in the same way like the old datasets?
Thanks
Peter
1: R code to find cluster center and save them to file
#---INITIAL CLUSTERING TO FIND CLUSTER CENTERS
# LOAD LIB
library(cluster)
# LOAD DATA
data_unclean <- read.table("dataset1.dat")
data.matrix<-as.matrix(data_unclean,"any")
# CLUSTER
Nclust <- 100 # amount cluster centers
Imax <- 200 # amount of iteration for convergence of clustering
set.seed(100) # set seed of random nr generator
init <- sam...