File: getTerminalNodeIDs.Rd

package info (click to toggle)
r-cran-ranger 0.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,160 kB
  • sloc: cpp: 8,324; sh: 13; makefile: 5; ansic: 2
file content (25 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getTerminalNodeIDs.R
\name{getTerminalNodeIDs}
\alias{getTerminalNodeIDs}
\title{Get terminal node IDs (deprecated)}
\usage{
getTerminalNodeIDs(rf, dat)
}
\arguments{
\item{rf}{\code{ranger} object.}

\item{dat}{New dataset. Terminal node IDs for this dataset are obtained.}
}
\value{
Matrix with terminal nodeIDs for all observations in dataset and trees.
}
\description{
This function is deprecated. 
Please use predict() with \code{type = "terminalNodes"} instead.
This function calls predict() now.
}
\examples{
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
getTerminalNodeIDs(rf, iris)
}