best_split,DecisionTreeClassifier-method {SSLR} | R Documentation |
Best Split function
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
## 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
[Package SSLR version 0.9.3.3 Index]