Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fit_decision_tree-DecisionTreeClassifier-method

Fit decision tree


Description

method in class DecisionTreeClassifier used to build a Decision Tree

Usage

## 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

Semi-Supervised Classification, Regression and Clustering Methods

v0.9.3.1
GPL-3
Authors
Francisco Jesús Palomares Alabarce [aut, cre] (<https://orcid.org/0000-0002-0499-7034>), José Manuel Benítez [ctb] (<https://orcid.org/0000-0002-2346-0793>), Isaac Triguero [ctb] (<https://orcid.org/0000-0002-0150-0651>), Christoph Bergmeir [ctb] (<https://orcid.org/0000-0002-3665-9021>), Mabel González [ctb] (<https://orcid.org/0000-0003-0152-444X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.