search for: xtrainytrain

Displaying 1 result from an estimated 1 matches for "xtrainytrain".

2010 Aug 16
0
Help for using nnet in R for NN training and testing
...11","x12","x13","x14","x15","x16","x17","x18","x19","y") colnames (data ) <? headings xtrain<-data[1:1200,2:20] ytrain<-data[1:1200,21] xtest<-data[1201:2000,2:20] ytest<-data[1201:2000,21] xtrainytrain<-data[1:1200,1:20] sample.int(1200, size=1200, replace = FALSE, prob = NULL) ir.nn3<-nnet(xtrain[samp,], xtrainytrain[samp,], size =10, rang = 0.1,decay=5e-4,maxit=1000) ******************************************************************* I am not sure if the sample.int function I used is cor...