[R] More digits in prediction using random forest object

Liaw, Andy andy_liaw at merck.com
Wed Mar 12 17:55:53 CET 2008


How many trees are you growing in the forest?  If you grow a 100-tree
forest, the possible predictions (for a two-class data) would simply be 

{0, 0.01, 0.02, ..., 0.99, 1}

Then, of course, if you only grow three trees, the predictions can only
be

{0, 1/3, 2/3, 1}

You can ask for as many digits as R can give you, but it won't do you
any good.

Andy

From: Nagu
> 
> I need to get more digits in predicting a test sample with a random
> forests object. Format or options(digits=) do nothing. Any ideas?
> 
> Thank you,
> Nagu
> 
> ______________________________________________
> R-help at r-project.org 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.
> 
> 
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachme...{{dropped:15}}



More information about the R-help mailing list