[R] Runtime error

From: Gwnal Leday <gwenael.leday_at_gmail.com>
Date: Mon, 03 Mar 2008 11:49:32 +1300


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)  }
}

-- 
Gwnal Leday
Bio-Protection and Ecology Division
Lincoln University
New Zealand
gwenael.leday_at_gmail.com

	[[alternative HTML version deleted]]


______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Received on Sun 02 Mar 2008 - 22:52:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 02 Mar 2008 - 23:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive