Learn R Programming

MultivariateRandomForest (version 1.1)

single_tree_prediction: Prediction of Testing Samples for single tree

Description

Predicts the output features of testing samples using the model of a tree

Usage

single_tree_prediction(Single_Model, X_test, Variable_number)

Arguments

Single_Model
Random Forest or Multivariate Random Forest Model of a particular tree
X_test
Testing samples of Q x N, Q 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

Value

Prediction result of the Testing samples for a particular tree

Details

A model contrains splitting criteria for all the split of the tree and output features of training samples in the leaf nodes. A testing sample using these criteria will go to a leaf node and average of the output feature vectors in the leaf node is considered as the prediction of that testing sample.