Learn R Programming

C50 (version 0.1.0-21)

summary.C5.0: Summaries of C5.0 Models

Description

This function prints out detailed summaries for C5.0 models.

Usage

## S3 method for class 'C5.0':
summary(object, ...)

Arguments

object
an object of class C5.0
...
other options (not currently used)

Value

  • A list with values
  • outputa single text string with the model output
  • comp2the call to this function

Details

The output of this function mirrors the output of the C5.0 command line version.

The terminal nodes have text indicating the number of samples covered by the node and the number that were incorrectly classified. Note that, due to how the model handles missing values, the sample numbers may be fractional.

There is a difference in the attribute usage numbers between this output and the nominal command line output. Although the calculations are almost exactly the same (we do not add 1/2 to everything), the C code does not display that an attribute was used if the percentage of training samples covered by the corresponding splits is very low. Here, the threshold was lowered and the fractional usage is shown.

References

Quinlan R (1993). C4.5: Programs for Machine Learning. Morgan Kaufmann Publishers, http://www.rulequest.com/see5-unix.html

See Also

C5.0, C5.0Control, summary.C5.0, C5imp

Examples

Run this code
data(churn)

treeModel <- C5.0(x = churnTrain[, -20], y = churnTrain$churn)
summary(treeModel)

Run the code above in your browser using DataLab