getTree.randomUniformForest function

Extract a tree from a forest

Extract a tree from a forest

get the structure of a tree from a randomUniformForest object.

getTree.randomUniformForest(object, whichTree, labelVar = TRUE)

Arguments

  • 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.

Returns

a data frame representing the raw tree structure

Note

Trees in randomUniformForest package have almost the same structure than trees in the randomForest package.

Author(s)

Saip Ciss saip.ciss@wanadoo.fr

Examples

data(iris) iris.ruf <- randomUniformForest(Species ~ ., data = iris, threads = 1, ntree = 20, BreimanBounds = FALSE) # get the 10th tree OneTree <- getTree.randomUniformForest(iris.ruf, 10)
  • Maintainer: Saip Ciss
  • License: BSD_3_clause + file LICENSE
  • Last published: 2022-06-21

Useful links

    Downloads (last 30 days):