Fit a decision tree model
tl_fit_tree(
data,
formula,
is_classification = FALSE,
cp = 0.01,
minsplit = 20,
maxdepth = 30,
...
)A fitted decision tree model
A data frame containing the training data
A formula specifying the model
Logical indicating if this is a classification problem
Complexity parameter (default: 0.01)
Minimum number of observations in a node for a split
Maximum depth of the tree
Additional arguments to pass to rpart()