Re: [R] CARET and NNET fail to train a model when the input is high dimensional

2013-03-06 Thread Max Kuhn
James, I did a fresh install from CRAN to get caret_5.15-61 and ran your code with method.name = nnet and grid.len = 3. I don't get an error, although there were issues: In nominalTrainWorkflow(dat = trainData, info = trainInfo, ... : There were missing values in resampled performance

Re: [R] CARET and NNET fail to train a model when the input is high dimensional

2013-03-06 Thread James Jong
Thank you Max. I presume that in order to use caret with nnet and MaxNWts, I would have to write my custom method for train that supports this new argument. From what I read, when writing my custom method, I would need to define functions parameters, model, prediction, prob and sort and pass them

[R] CARET and NNET fail to train a model when the input is high dimensional

2013-03-05 Thread James Jong
The following code fails to train a nnet model in a random dataset using caret: nR - 700 nCol - 2000 myCtrl - trainControl(method=cv, number=3, preProcOptions=NULL, classProbs = TRUE, summaryFunction = twoClassSummary) trX - data.frame(replicate(nR, rnorm(nCol))) trY -