Description Usage Arguments Details Value
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.
1 | predicting(Single_Model, i, X_test, Variable_number)
|
Single_Model |
Model of a particular tree |
i |
Number of splits. Used as an index, which indicates where in the list the splitting criteria of this split has been stored. |
X_test |
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) |
Variable_number |
Number of Output Features |
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.
Prediction result of a testing samples in a node
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.