predicting {IntegratedMRF}R Documentation

Prediction of testing sample in a node

Description

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.

Usage

predicting(Single_Model, i, X_test, Variable_number)

Arguments

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

Details

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.

Value

Prediction result of a testing samples in a node


[Package IntegratedMRF version 1.1.9 Index]