compute_min_node_impurity: compute_min_node_impurity.

Description Usage Arguments Value

View source: R/compute_min_node_impurity.R

Description

This function instantiates a HHDecisionTree model, it is used to induce classification or regression trees depending upon the value of the response parameter. It supports the parameters listed below.

Usage

1
compute_min_node_impurity(X, y, response, seed, useIdentity = FALSE)

Arguments

X

The feature variables we will use to train the HHDecisionTree model on.

y

The target variable.

response

The response parameter is used to specify what type of model to build, either 'classify' for a classification tree model or 'regressor' for a regression tree model. The default is 'classify'.

seed

The random seed to be used to prime the random number generator.

useIdentity

The useIdentity parameter when set TRUE will result in hhcartr using the original training data to find the optimal splits rather than using the reflected data. The default value is FALSE.

Value

Returns the "best" value of min_node_impurity.


hhcartr documentation built on July 2, 2021, 9:06 a.m.