treeset.randomForest: Generate a representation of a tree in a Random Forest

Description Usage Arguments Author(s) References Examples

View source: R/random_forest.R

Description

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.

Usage

1
treeset.randomForest(model, n=1, root=1, format="R")

Arguments

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

Author(s)

[email protected]

References

Package home page: https://rattle.togaware.com

Examples

1
2
## Display a treeset for a specific model amongst the 500.
## Not run: treeset.randomForests(rfmodel, 5)

Example output

R session is headless; GTK+ not initialized.
Rattle: A free graphical interface for data mining with R.
Version 4.1.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.

rattle documentation built on Aug. 17, 2018, 5:04 p.m.