View source: R/getTreeranger.R
getTreeranger | R Documentation |
This functions creates a list of trees for ranger objects similar as getTree function does for random Forest objects.
getTreeranger(RF, ntree)
RF |
random forest object created by ranger (with keep.inbag=TRUE) |
ntree |
number of trees |
a list with trees. Each row of the list elements corresponds to a node of the respective tree and the columns correspond to:
nodeID: ID of the respective node (important for left and right daughters in the next columns)
leftdaughter: ID of the left daughter of this node
rightdaughter: ID of the right daughter of this node
splitvariable: ID of the split variable
splitpoint: splitpoint of the split variable
status: "0" for terminal and "1" for non-terminal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.