new_tree_summary: Constructor for tree_summary class

View source: R/classes.R

new_tree_summaryR Documentation

Constructor for tree_summary class

Description

Creates a tree_summary object with validation

Usage

new_tree_summary(
  children_left,
  children_right,
  feature,
  feature_uniq,
  threshold,
  max_depth,
  sample_weight,
  init_prediction,
  node_count,
  default_left = NULL,
  xgboost_split = FALSE
)

Arguments

children_left

Integer vector of left child indices

children_right

Integer vector of right child indices

feature

Integer vector of feature indices

feature_uniq

Integer vector of unique feature indices used in tree

threshold

Numeric vector of threshold values

max_depth

Integer maximum depth

sample_weight

Numeric vector of sample weights per node

init_prediction

Numeric vector of initial predictions per node

node_count

Integer total number of nodes

default_left

Logical vector indicating the missing-value direction.

xgboost_split

Logical; use XGBoost float32 strict-less routing.

Value

An object of class tree_summary


qshap documentation built on Aug. 23, 2026, 5:11 p.m.