CARTHyperparameters
VariantCART decision tree (rpart). See `setup_CART`.
Properties
cpnumber | object≥ 0Complexity parameter.
maxdepthinteger | object≥ 1≤ 30Maximum depth of tree (rpart limit: 30).
minsplitinteger | object≥ 1Minimum number of observations in a node to attempt a split.
minbucketinteger | object≥ 1Minimum number of observations in a terminal node.
prune_cpnumber | object | null≥ 0Complexity for cost-complexity pruning after the tree is built.
methodstringSplitting method. auto = set from outcome type.
one of
"auto""anova""class""poisson""exp"modelbooleanKeep a copy of the model frame in the result.
maxcompeteinteger≥ 0Number of competitor splits retained in the output.
maxsurrogateinteger≥ 0Number of surrogate splits retained in the output.
usesurrogateinteger≥ 0≤ 2How to use surrogates in the splitting process.
surrogatestyleinteger≥ 0≤ 1Controls the selection of the best surrogate.
xvalinteger≥ 0Number of rpart-internal cross-validation folds.
costarray | null≥ 1 itemsVariable costs. Must have one value per feature.
ifwboolean | objectInverse Frequency Weighting in classification.
Relationships
Used by