best_split-DecisionTreeClassifier-method: Best Split function

Description Usage Arguments Value

Description

Function to get best split in Decision Tree. Find the best split for node. "Beast" means that the mean of impurity is the least possible. To find the best division. Let's iterate through all the features. All threshold / feature pairs will be computed in the numerical features. In the features that are not numerical, We get the best group of possible values will be obtained based on an algorithm with the function get_levels_categoric

Usage

1
2
## S4 method for signature 'DecisionTreeClassifier'
best_split(object, X, y, parms)

Arguments

object

DecisionTree object

X

is data

y

is class values

parms

parms in function

Value

A list with: best_idx name of the feature with the best split or Null if it not be found best_thr: threshold found in the best split, or Null if it not be found


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