View source: R/random_forest.R
treeset.randomForest | R Documentation |
Often we want to view the actual trees built by a random forest. Although reviewing all 500 trees might be a bit much, this function allows us to at least list them.
treeset.randomForest(model, n=1, root=1, format="R")
model |
a randomForest model. |
n |
a specific tree to list. |
root |
where to start the stree from, primarily for internal use. |
format |
one of "R", "VB". |
Package home page: https://rattle.togaware.com
## Display a treeset for a specific model amongst the 500. ## Not run: treeset.randomForests(rfmodel, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.