0

When I do predict on newdata for randomForest (R implementation) and set nodes=TRUE

predict(rf, newdata = testset, nodes = TRUE)

what is returned?

It says it returns an n by ntree matrix, each column containing the node number that the cases fall in for that tree.

I dont understand how this works? What is the node number that the cases fall in for that tree? Are a tree's nodes numbered when they are generated in this implementaiton of rf?

Thank you.

4

0 回答 0