Hello all,

I am trying to explore random forest in R. What I want to do is get the node
number in which the case falls in the tree of random forest. For that I am
calling the predict method as:

learn.pred <- predict (learn.rf, newdata=learn.data.x,norm.votes=
TRUE,predict.all = TRUE, nodes= TRUE,type="response")

Studying the manual of random forest, I suppose that learn,pred$nodes should
contain the node numbers, but there is no attributes called nodes in
learn.pred object.

 

I am not much experienced with R. Please help me to resolve this issue.

 

Thanks in advance,

Rupendra 
 
 
PRIVACY NOTICE

This email and any attachments may be confidential and/or pr...{{dropped}}

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to