Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getTerminalNodeIDs

Get terminal node IDs (deprecated)


Description

This function is deprecated. Please use predict() with type = "terminalNodes" instead. This function calls predict() now.

Usage

getTerminalNodeIDs(rf, dat)

Arguments

rf

ranger object.

dat

New dataset. Terminal node IDs for this dataset are obtained.

Value

Matrix with terminal nodeIDs for all observations in dataset and trees.

Examples

rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
getTerminalNodeIDs(rf, iris)

ranger

A Fast Implementation of Random Forests

v0.12.1
GPL-3
Authors
Marvin N. Wright [aut, cre], Stefan Wager [ctb], Philipp Probst [ctb]
Initial release
2020-01-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.