Provides the value of a testing sample in a node that refers to which child node it will go to using the splitting criteria of the tree node or the prediction results if the node is a leaf.
predicting(Single_Model, i, X_test, Variable_number)
Model of a particular tree
Number of splits. Used as an index, which indicates where in the list the splitting criteria of this split has been stored.
Testing samples of size 1 x N, 1 is the number of testing samples and N is the number of features (same order and size used as training)
Number of Output Features
Prediction result of a testing samples in a node
The function considers the output at a particular node. If the node is a leaf, the average of output responses is returned as prediction result. For a non-leaf node, the direction of left or right node is decided based on the node threshold and splitting feature value.