This internal function is used to perform some basic checks on the input dataset. The first check to fail will stop the model from being instantiated. The following checks are performed:
bagging_predict(mytrees, testx, useIdentity, classify, objectid)
A list of all trees.
The test dataset, the target variables are in the last column.
Whether the training data has been transformed with the householder transform.
Default is TRUE. Set TRUE for a classification problem and FALSE for a regression problem.
List of objectids (tree nodes) that will be collapsed in the current tree.
A matrix of all predictions made from all trees and another matrix with a margin for each tree.