View source: R/print.PPtreeExtclass.R
| print.PPtreeExtclass | R Documentation |
Prints a summary of a fitted projection pursuit classification tree, including the tree structure, optionally the projection coefficients and cutoff values, and the training error rate.
## S3 method for class 'PPtreeExtclass'
print(x, coef.print = FALSE, cutoff.print = FALSE, verbose = TRUE, ...)
x |
An object of class |
coef.print |
Logical indicating whether to print the projection coefficients
for each split node. Default is |
cutoff.print |
Logical indicating whether to print the cutoff values for
each split node. Default is |
verbose |
Logical indicating whether to print the tree structure and error
rate. If |
... |
Additional arguments (currently not used). |
The function traverses the tree structure stored in x$Tree.Struct and
creates a hierarchical text representation. When coef.print = TRUE,
the projection coefficients (linear combinations of features) used at each
split are displayed. When cutoff.print = TRUE, the threshold values
used to determine left/right splits are shown.
The training error rate is computed by applying the fitted tree to the original training data.
The object x, invisibly
PPtreeExtclass, PPtreeExt_split,
predict.PPtreeExtclass
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.