Re: [R] error in random forest

2008-03-08 Thread David Katz
I've had the same problem and solved it by removing the cases with the new levels - they need to be handled some other way, either by building a new model or reassigning the factor level to one in the training set. Nagu wrote: > > Hi, > > I get the following error when I try to predict the pr

Re: [R] error in random forest

2008-03-07 Thread Nagu
Thank you very much. I'll jump in to the data and verify the consistency between the training and testing variables and their levels. On Fri, Mar 7, 2008 at 5:14 PM, <[EMAIL PROTECTED]> wrote: > The error message is pretty clear, really. To spell it out a bit more, > what you have done is as fo

Re: [R] error in random forest

2008-03-07 Thread Bill.Venables
The error message is pretty clear, really. To spell it out a bit more, what you have done is as follows. Your training set has factor variables in it. Suppose one of them is "f". In the training set it has 5 levels, say. Your test set also has a factor "f", as it must, but it appears that in t