Hi everybody!

I try to implements Self-Organizing Maps with R and the Kohonen package.
I have made an algorithm that try differents width and height. For each
step, Silhouette index, Davies-Bouldin index and Dunn index are computed.
However, there is always after severals minutes a *Runtime error* appears on
the window:

Microsoft visual c++ runtime library
"this application has requested the runtime to terminate "
or
"R for Windows GUI front-end has encountered a problem and needs to close.
We are sorry for the inconvenience."

it happens also that the window disppeared without message error

Please, if you have already see this problem or if you understand it and
know the solution, please contact me...


code:

results.som <- matrix(NA, 7, 7)
results.sil <- matrix(NA, 7, 7)
results.dbi <- matrix(NA, 7, 7)
results.dun <- matrix(NA, 7, 7)

for (i in 8:14){
 for (j in 8:14){
  # SOM with Kohonen package
  som <- som(data.scaled, grid = somgrid(i, j, "hexagonal"),
  radius=j, rlen=1000)

  # Summary SOM
  results.som[i-7,j-7] <- mean(som$distances)

  # Indexes
  results.sil[i-7,j-7] <- summary(silhouette(som$unit.classif,
dist))$avg.width
  results.dbi[i-7,j-7] <- index.DB(species.data,som$unit.classif)$DB
  results.dun[i-7,j-7] <- dunn(dist, som$unit.classif)
 }
}




-- 
Gwénaël Leday
Bio-Protection and Ecology Division
Lincoln University
New Zealand
gwenael.leday@gmail.com

	[[alternative HTML version deleted]]

