Learn R Programming

hhcartr (version 1.0.0)

split_using_original_data: split_using_original_data

Description

This function is in an internal only function. It performs an axis-parallel split on the original data.

Usage

split_using_original_data(
  X,
  y,
  most_freq_class,
  split_original,
  n_classes,
  max_features,
  depth
)

Arguments

X

The feature variables of the current node being processed.

y

The target variable for the corresponding feature variables.

most_freq_class

The most frequently occurring class at the current node.

split_original

A flag, TRUE if splitting on original data otherwise FALSE.

n_classes

The number of classes in the target variable.

max_features

The maximum number of features to consider in the current split.

depth

The depth of the current tree.

Value

returns a list containing the following: idx, thr, X, NULL, FALSE.

Details

The following parameters are supported: