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
>
>
>
> -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
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
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
4 matches
Mail list logo