tidy.constparty | R Documentation |
Each row corresponds to a rule
## S3 method for class 'constparty'
tidy(x, ...)
x |
partykit::party model typically built using partykit::ctree |
... |
Other arguments (currently unused) |
These types of party models are supported:
regression
(y is numeric), classification
(y is factor)
For party classification model:
Output columns are: rule_nbr
, LHS
, RHS
, support
, confidence
, lift
, terminal_node_id
.
Rules are sorted in this order: desc(confidence)
, desc(lift)
,
desc(support)
.
For party regression model:
Output columns are: rule_nbr
, LHS
, RHS
, support
, IQR
, RMSE
, terminal_node_id
.
Rules are sorted in this order: RMSE
, desc(support)
.
A rulelist object
rulelist, tidy, augment, predict, calculate, prune, reorder
pen = palmerpenguins::penguins
model_class_party = partykit::ctree(species ~ ., data = pen)
tidy(model_class_party)
model_regr_party = partykit::ctree(bill_length_mm ~ ., data = pen)
tidy(model_regr_party)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.