bagging_predict: bagging_predict Make predictions for each test dataset row...

Description Usage Arguments Value

View source: R/hhcartr_predictors.R

Description

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:

Usage

1
bagging_predict(mytrees, testx, useIdentity, classify, objectid)

Arguments

mytrees

A list of all trees.

testx

The test dataset, the target variables are in the last column.

useIdentity

Whether the training data has been transformed with the householder transform.

classify

Default is TRUE. Set TRUE for a classification problem and FALSE for a regression problem.

objectid

List of objectids (tree nodes) that will be collapsed in the current tree.

Value

A matrix of all predictions made from all trees and another matrix with a margin for each tree.


hhcartr documentation built on July 2, 2021, 9:06 a.m.