Learn R Programming

FFTrees (version 1.7.0)

print.FFTrees: Print basic information of fast-and-frugal trees (FFTs)

Description

print.FFTrees prints basic information on FFTs for an FFTrees object x.

As x may not contain test data, print.FFTrees by default prints the performance characteristics for training data (i.e., fitting), rather than for test data (i.e., for prediction). When test data is available, specify data = "test" to print prediction performance.

Usage

# S3 method for FFTrees
print(x = NULL, tree = 1, data = "train", ...)

Value

Prints summary information about an FFT to the console.

Arguments

x

An FFTrees object created by FFTrees.

tree

The tree to be printed (as an integer, only valid when the corresponding tree argument is non-empty). Default: tree = 1. To print the best training or best test tree with respect to the goal specified during FFT construction, use "best.train" or "best.test", respectively.

data

The data in x to be printed (as a string); must be either 'train' (for fitting performance) or 'test' (for prediction performance). By default, data = 'train' (as x may not contain test data).

...

additional arguments passed to print.

See Also

plot.FFTrees for plotting FFTs; summary.FFTrees for summarizing FFTs; inwords for obtaining a verbal description of FFTs; FFTrees for creating FFTs from and applying them to data.