tidy.C5.0 | R Documentation |
Each row corresponds to a rule per trial_nbr
## S3 method for class 'C5.0'
tidy(x, ...)
x |
C50::C5.0 model fitted with |
... |
Other arguments (See details) |
The output columns are: rule_nbr
, trial_nbr
, LHS
, RHS
,
support
, confidence
, lift
.
Rules per trial_nbr
are sorted in this order: desc(confidence)
,
desc(lift)
, desc(support)
.
Optional named arguments:
laplace
(flag, default: TRUE) is supported. This
computes confidence with laplace correction as documented under 'Rulesets'
here: C5 doc.
A rulelist object
rulelist, tidy, augment, predict, calculate, prune, reorder
Other Core Tidy Utility:
tidy()
,
tidy.cubist()
,
tidy.rpart()
model_c5 = C50::C5.0(Attrition ~., data = modeldata::attrition, rules = TRUE)
tidy(model_c5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.