This internal function is used to create a tree node. Remaining parameters will be initialised as the tree induction process progresses.
NNode(
gini,
num_samples,
num_samples_per_class,
predicted_class,
parent_node,
objectid,
oob_row_indices = NA
)
The gini index of the node.
The number of samples at this node.
A table showing class distribution at this node.
If a leaf node, the predicted class of this node.
The parent node object for this child node.
A unique id for this node object.
For a root node the out-of-bag indices from original training set used to create this tree.
a tree node of type hash.