[R] CART vs. Random Forest
Andrew Baek
andrew at stat.ucla.edu
Thu Sep 26 21:33:22 CEST 2002
> One suggestion if making sure you find the 1's is more important than having
> a low overall error rate: in rpart, you can specify a loss matrix to say
> that certain kinds of errors are more important than others. In a random
> forest, you can use different voting thresholds for "1-ness" and "0-ness" to
> bias things -- that is, instead of just taking majority vote, you might
> require (for example) 85% of the trees to agree for something to be declared
> in class 0.
If I use loss matrix in "rpart" and different threshold in "RF", how
can I compare two packages? Well, Andy Liaw told me "classwt" in RF does
not help much. But when I modified priors in rpart, I got totall new
results. So I thought this should be applied to RF.
Also, I'll appreciate if you tell me how to change the voting threshold in
RF. I couldn't find it in the manual. Thank you.
Andrew
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list