row_predict: row_predict Make predictions for a test dataset row against a...

Description Usage Arguments Value

View source: R/hhcartr_predictors.R

Description

This internal function is used to run a test dataset row through a tree to make a prediction.

Usage

1
row_predict(xnode, test_row, useIdentity, objectid)

Arguments

xnode

Root node of the current tree we are making predictions against.

test_row

Current row from the test dataset.

useIdentity

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

objectid

A list of node numbers that will be 'pruned' ie. when making predictions if the tree node matches a node in objectid the tree node will be used to make the prediction rather than traversing any underlying nodes.

Value

A prediction for the test dataset row.


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