method in class DecisionTreeClassifier used to build a Decision Tree
# S4 method for DecisionTreeClassifier
fit_decision_tree(
object,
X,
y,
min_samples_split = 20,
min_samples_leaf = ceiling(min_samples_split/3),
w = 0.5
)A DecisionTreeClassifier object
A object that can be coerced as data.frame. Training instances
A vector with the labels of the training instances. In this vector
the unlabeled instances are specified with the value NA.
the minimum number of observations to do split
the minimum number of any terminal leaf node
weight parameter ranging from 0 to 1