We need enough information to run your code on our computer and get the same error as you. In this case we are missing the data. See e.g. http://adv-r.had.co.nz/Reproducibility.html If you can't provide the original data, then try to make a (small) example which reproduces your problem.
ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey 2015-03-30 14:47 GMT+02:00 Soheila Khodakarim <lkhodaka...@gmail.com>: > Dear Thierry Onkelinx, > > Thank you so much to answer me. But I do not know what information I > should send for you > I want to run neural network on my data.I run these codes and I saw this > Error in the last line > > #load mydata > dim(mydata) > # 20 3111 > library(neuralnet) > fm <- as.formula(paste("resp ~", paste(colnames(mydata)[1:3110], > collapse="+"))) > out <- neuralnet(fm,data=mydata, hidden = 4, lifesign = "minimal", > linear.output = FALSE, threshold = 0.1) > Call: neuralnet(formula = fm, data = mydata, hidden = 4, threshold = 0.1, > lifesign = "minimal", linear.output = FALSE) > > 1 repetition was calculated. > > Error Reached Threshold Steps > 1 2.402157856 0.06958374995 9 > #load testset > dim(testset) > # 20 3111 > out.results <- compute(out, testset) > Error in neurons[[i]] %*% weights[[i]] : non-conformable arguments > > > Regards, > Soheila > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.