edges_between_terminal_nodes | R Documentation |
first two columns are terminal node IDs; If an ID pair do not appear in a tree -1 is inserted
edges_between_terminal_nodes(rfObject)
rfObject |
|
a matrix
object with pairwise terminal node edge length
require(ranger)
rf.fit <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
edges_between_terminal_nodes(rf.fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.