tidy.cubist | R Documentation |
Each row corresponds to a rule per committee
## S3 method for class 'cubist'
tidy(x, ...)
x |
Cubist::cubist model |
... |
Other arguments (currently unused) |
The output columns are: rule_nbr
, committee
, LHS
, RHS
, support
, mean
, min
, max
, error
.
Rules are sorted in this order per committee:
error
, desc(support)
A rulelist object
rulelist, tidy, augment, predict, calculate, prune, reorder
Other Core Tidy Utility:
tidy()
,
tidy.C5.0()
,
tidy.rpart()
att = modeldata::attrition
cols_att = setdiff(colnames(att), c("MonthlyIncome", "Attrition"))
model_cubist = Cubist::cubist(x = att[, cols_att],
y = att[["MonthlyIncome"]]
)
tidy(model_cubist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.