This internal function is used to run a test dataset row through a tree to make a prediction.
row_predict(xnode, test_row, useIdentity, objectid)
Root node of the current tree we are making predictions against.
Current row from the test dataset.
Whether the training data has been transformed with the householder transform.
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.
A prediction for the test dataset row.