View source: R/getTerminalNodeIDs.R
getTerminalNodeIDs | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.