CARTHyperparameters
VariantCART decision tree (rpart). See `setup_CART`.
Properties
cptunablenumberdefault0.01≥ 0Complexity parameter.
maxdepthtunableintegerdefault20≥ 1≤ 30Maximum depth of tree (rpart limit: 30).
minsplittunableintegerdefault2≥ 1Minimum number of observations in a node to attempt a split.
minbuckettunableintegerdefault1≥ 1Minimum number of observations in a terminal node.
prune_cpnumber | number[] | nulldefaultnull≥ 0≥ 1 itemsComplexity for cost-complexity pruning after the tree is built.
methodstringdefault"auto"Splitting method. auto = set from outcome type.
one of
"auto""anova""class""poisson""exp"modelbooleandefaulttrueKeep a copy of the model frame in the result.
maxcompeteintegerdefault4≥ 0Number of competitor splits retained in the output.
maxsurrogateintegerdefault5≥ 0Number of surrogate splits retained in the output.
usesurrogateintegerdefault2≥ 0≤ 2How to use surrogates in the splitting process.
surrogatestyleintegerdefault0≥ 0≤ 1Controls the selection of the best surrogate.
xvalintegerdefault0≥ 0Number of rpart-internal cross-validation folds.
costarray | nulldefaultnull≥ 1 itemsVariable costs. Must have one value per feature.
ifwtunablebooleandefaultfalseInverse Frequency Weighting in classification.
Relationships
Used by