Get terminal node IDs (deprecated)
This function is deprecated.
Please use predict() with type = "terminalNodes"
instead.
This function calls predict() now.
getTerminalNodeIDs(rf, dat)
rf |
|
dat |
New dataset. Terminal node IDs for this dataset are obtained. |
Matrix with terminal nodeIDs for all observations in dataset and trees.
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE) getTerminalNodeIDs(rf, iris)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.