Skip to content
Back to formatted view

Raw Message

Message-ID: <39B6DDB9048D0F4DAD42CB26AAFF0AFA0562C79F@usctmx1106.merck.com>
Date: 2008-03-12T16:55:53Z
From: Liaw, Andy
Subject: More digits in prediction using random forest object
In-Reply-To: <21da85430803111625x26dbf872p2c881e51d23b0355@mail.gmail.com>

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}}