Re: [R] Caret and Model Prediction

2014-10-06 Thread mxkuhn
> On Oct 5, 2014, at 4:51 PM, Lorenzo Isella wrote: > > Thanks a lot. > At this point then I wonder: seen that my response consists of 5 > outcomes for each set of features, should I then train 5 different > models (one for each of them)? > Cheers caret can only model one outcome at a time so

Re: [R] Caret and Model Prediction

2014-10-06 Thread Jia Xu
Yes, you should train 5 different models, or find an outcome that can combine them together, since caret only accepts a list or vector as outcome. On Sun, Oct 5, 2014 at 1:51 PM, Lorenzo Isella wrote: > Thanks a lot. > At this point then I wonder: seen that my response consists of 5 > outcomes f

Re: [R] Caret and Model Prediction

2014-10-05 Thread Lorenzo Isella
Thanks a lot. At this point then I wonder: seen that my response consists of 5 outcomes for each set of features, should I then train 5 different models (one for each of them)? Cheers Lorenzo On Sun, Oct 05, 2014 at 11:04:01AM -0700, Jia Xu wrote: Hi, Lorenzo: For 1) I think the formula is not

Re: [R] Caret and Model Prediction

2014-10-05 Thread Jia Xu
Hi, Lorenzo: For 1) I think the formula is not correct. The formula should be outcome ~ features, and that's why you have weird result in 3) 2) predict in caret will automatically find the best result one if there is one(sometimes it fails). You can print the model to see the cross validation

[R] Caret and Model Prediction

2014-10-05 Thread Lorenzo Isella
Dear All, I am learning the ropes of CARET for automatic model training, more or less following the steps of the tutorial at http://bit.ly/ZJQINa However, there are a few things about which I would like a piece of advice. Consider for instance the following model ##