Skip to content

More digits in prediction using random forest object

2 messages · Nagu, Liaw, Andy

#
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
#
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
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachme...{{dropped:15}}