fit_decision_tree-DecisionTreeClassifier-method: Fit decision tree

Description Usage Arguments

Description

method in class DecisionTreeClassifier used to build a Decision Tree

Usage

1
2
3
4
5
6
7
8
9
## S4 method for signature 'DecisionTreeClassifier'
fit_decision_tree(
  object,
  X,
  y,
  min_samples_split = 20,
  min_samples_leaf = ceiling(min_samples_split/3),
  w = 0.5
)

Arguments

object

A DecisionTreeClassifier object

X

A object that can be coerced as data.frame. Training instances

y

A vector with the labels of the training instances. In this vector the unlabeled instances are specified with the value NA.

min_samples_split

the minimum number of observations to do split

min_samples_leaf

the minimum number of any terminal leaf node

w

weight parameter ranging from 0 to 1


SSLR documentation built on July 22, 2021, 9:08 a.m.