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
> > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Nagu > Sent: Saturday, 8 March 2008 5:37 AM > To: r-help@r-project.org; [EMAIL PROTECTED] > Subject: [R] error in random forest > > Hi, > > I get the

Re: [R] error in random forest

2008-03-07 Thread Bill.Venables
rom: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nagu Sent: Saturday, 8 March 2008 5:37 AM To: r-help@r-project.org; [EMAIL PROTECTED] Subject: [R] error in random forest Hi, I get the following error when I try to predict the probabilities of a test sample: Error in predict.randomFores

[R] error in random forest

2008-03-07 Thread Nagu
Hi, I get the following error when I try to predict the probabilities of a test sample: Error in predict.randomForest(fit.EBA.OM.rf.50, x.OM, type = "prob") : New factor levels not present in the training data I have about 630 predictor variables in the dataset x.OM (25 factor variables and th