madhurima bhattacharjee
2006-Mar-23 13:37 UTC
[R] front- end problem while using nnet and tune.nnet
Dear R people, I am using tune.nnet from e1071 package to tune the parameters for nnet. I am using the following syntax: tuneclass <-c(rep(1,46),rep(2,15)) tunennet <-tune.nnet(x=traindata,y=tuneclass,size=c(50,75,100),decay=c(0,0.005,0.010),MaxNWts = 20000) Here traindata is the training data that I want to tune for nnet which is a matrix with 61 rows(samples) and 200 columns(genes). tuneclass is the class indicator vector which says that the first 46 samples of the traindata are of class 1 and the next 15 samples are of class 2 type. The problem that I encountered was, when I used a higher size like 50 or more then it gave me the following error: R for Windows terminal front-end has encountered a problem and needs to close. We are sorry for the inconvenience. I didn't get this error for size <25. But even in such cases the program took huge amount of time. I really don't understand what the problem is and how to solve this. Can anyone please help me asap? Thanks in advance, Regards, Madhurima. [[alternative HTML version deleted]]