View source: R/RandomUniformForestsCPP.R
getTree.randomUniformForest | R Documentation |
get the structure of a tree from a randomUniformForest object.
getTree.randomUniformForest(object, whichTree, labelVar = TRUE)
object |
an object of class randomUniformForest. |
whichTree |
which tree have to be printed ? |
labelVar |
if TRUE, names of the variables will be printed, rather than their positions. |
a data frame representing the raw tree structure
Trees in randomUniformForest package have almost the same structure than trees in the randomForest package.
Saip Ciss saip.ciss@wanadoo.fr
data(iris) iris.ruf <- randomUniformForest(Species ~ ., data = iris, threads = 1, ntree = 20, BreimanBounds = FALSE) # get the 10th tree OneTree <- getTree.randomUniformForest(iris.ruf, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.