This internal function is used to find the feature column that will offer the best split based on using the Gini index or gini hyperplane index.
best_split_(
X,
y,
most_freq_class,
split_original,
n_classes,
max_features,
depth
)
feature variables to search for the best split.
target variable.
the most frequent class in the target variable.
boolean to indicate whether to split on original data or reflected data.
number of classes in the y column
the maximum number of features to use when splitting a node
the depth of the current tree.
a list of the following variables (best_idx, best_thr, best_gini)