extract_terminal_nodes: Extract Terminal Node Assignments from an Ensemble Model

View source: R/adapters.R

extract_terminal_nodesR Documentation

Extract Terminal Node Assignments from an Ensemble Model

Description

Returns a data.frame with n_obs rows and n_trees columns where each cell is the terminal-node index assigned to that observation by that tree.

Usage

extract_terminal_nodes(ensemble, data)

Arguments

ensemble

A trained ensemble model.

data

A data.frame of observations (may include the response column; it is ignored internally).

Value

A data.frame with n_obs rows and n_trees columns of integer terminal-node identifiers.


e2tree documentation built on May 15, 2026, 5:06 p.m.