[R] Random Forest

Dror droryosef at hotmail.com
Sat Feb 27 15:18:27 CET 2010


Hi,
I'm working with randomForest package and i have 2 questions:
1. how can i drop a specific tree from the forest?
2. i'm trying to get the voting of each tree in a prediction datum using the
folowing code
  >  pr<-predict(RF,NewData,type="prob",predict.all=TRUE)
my forest has 300 trees and i get lower number of votes:
> length(pr$individual)
[1] 275
 > RF
Call:
 randomForest(formula = RFformula, data = adult, ntree = 300,      mtry = 1,
keep.forest = TRUE) 
               Type of random forest: classification
                     Number of trees: 300
No. of variables tried at each split: 1
Am i doing something wrong? how can i know which of the 300 trees didn't
cast a vote?

Thanks in advance
Dror
-- 
View this message in context: http://n4.nabble.com/Random-Forest-tp1557464p1571952.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list