tidy.cubist {tidyrules}R Documentation

Get the rulelist from a cubist model

Description

Each row corresponds to a rule per committee

Usage

## S3 method for class 'cubist'
tidy(x, ...)

Arguments

x

Cubist::cubist model

...

Other arguments (currently unused)

Details

Value

A rulelist object

See Also

rulelist, tidy, augment, predict, calculate, prune, reorder

Other Core Tidy Utility: tidy(), tidy.C5.0(), tidy.rpart()

Examples

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)


[Package tidyrules version 0.2.7 Index]