CARTHyperparameters
VariantCART decision tree (rpart). See `setup_CART`.
Properties
cptunablenumber≥ 0Complexity parameter.
maxdepthtunableinteger≥ 1≤ 30Maximum depth of tree (rpart limit: 30).
minsplittunableinteger≥ 1Minimum number of observations in a node to attempt a split.
minbuckettunableinteger≥ 1Minimum number of observations in a terminal node.
prune_cpnumber | number[] | null≥ 0≥ 1 itemsComplexity 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.
ifwtunablebooleanInverse Frequency Weighting in classification.
Relationships
Used by