[R] Pruning trees in a Random Forest

Wensui Liu liuwensui at gmail.com
Fri Mar 20 21:46:29 CET 2009


I don't think it necessary to prune trees in RF, per brieman's paper.

On 3/20/09, Liaw, Andy <andy_liaw at merck.com> wrote:
> The way the trees are structured in randomForest, there's no way to stop
> tree growth by depth (what you called level).
>
> (If anyone has ideas, I'm all ears.)
>
> Andy
>
> From: Anirudh Kondaveeti
>>
>> Hi all!
>>
>> The randomForest in R enables us to prune the trees using the nodesize
>> feature where we can stop splitting a node if it contains
>> less than the
>> specified no.of of records/entities at that node.
>>
>> However is there a way to stop the tree growing after a
>> specified number of
>> levels. To be more clear on what I mean by a level. Level 0
>> is the parent
>> node, Level 1 has 2 daughter nodes, Level 2 has 4 daughter
>> nodes, Level 3
>> has 8 daughter nodes etc.
>>
>> Thanks in advance!
>>
>> Anirudh Kondaveeti
>> ----------------------------
>>
>> 	[[alternative HTML version deleted]]
>>
>> ______________________________________________
>> 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:12}}
>
> ______________________________________________
> 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.
>


-- 
==============================
WenSui Liu
Acquisition Risk, Chase
Blog   : statcompute.spaces.live.com

Tough Times Never Last. But Tough People Do.  - Robert Schuller




More information about the R-help mailing list