get the structure of a tree from a randomUniformForest object.
getTree.randomUniformForest(object, whichTree, labelVar = TRUE)
an object of class randomUniformForest.
which tree have to be printed ?
if TRUE, names of the variables will be printed, rather than their positions.
a data frame representing the raw tree structure
# NOT RUN {
data(iris)
iris.ruf <- randomUniformForest(Species ~ ., data = iris,
threads = 1, ntree = 20, BreimanBounds = FALSE)
# get the 10th tree
OneTree <- getTree.randomUniformForest(iris.ruf, 10)
# }
Run the code above in your browser using DataLab