Build a Univariate Regression Tree (for generation of Random Forest (RF) ) or Multivariate Regression Tree ( for generation of Multivariate Random Forest (MRF) ) using the training samples, which is used for the prediction of testing samples.
build_single_tree(X, Y, m_feature, min_leaf, Inv_Cov_Y, Command)
Input Feature matrix of M x N, M is the number of training samples and N is the number of input features
Output Feature matrix of M x T, M is the number of training samples and T is the number of ouput features
Number of randomly selected features considered for a split in each regression tree node, which must be positive integer and less than N (number of input features)
Minimum number of samples in the leaf node, which must be positive integer and less than or equal to M (number of training samples)
Inverse of Covariance matrix of Output Response matrix for MRF(Input [0 0;0 0] for RF)
1 for univariate Regression Tree (corresponding to RF) and 2 for Multivariate Regression Tree (corresponding to MRF)
Model of a single regression tree (Univariate or Multivariate Regression Tree). An example of the list of the non-leaf node:
1
int [1:34] 1 2 4 5 ...
int [1:16] 3 6 9 ...
int 34
num [1:3] 0.655 0.526 0.785
num [1:2] 2 3
num[1:4,1:5] 0.0724 0.1809 0.0699 ...
The regression tree structure is represented as a list of lists. For a non-leaf node, it contains the splitting criteria (feature for split and threshold) and for a leaf node, it contains the output responses for the samples contained in the leaf node.