Skip to content

randomForest maxnodes

2 messages · Epic John, Liaw, Andy

#
Please try to follow the posting guide and give a reproducible example,
as below:

R> library(randomForest)
randomForest 4.5-34
Type rfNews() to see new features/changes/bug fixes.
R> iris2 = iris[-5]
R> iris.rf = randomForest(Petal.Width~., iris2, maxnodes=4, ntree=50)
R> nodesize(iris.rf)
Error: could not find function "nodesize"
R> treesize(iris.rf)
 [1] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4
[39] 4 4 4 4 4 4 4 4 4 4 4 4

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