structure_ratio_grow: Tree structure ratio for grow

View source: R/grow_ratio.R

structure_ratio_growR Documentation

Tree structure ratio for grow

Description

Tree structure ratio of the candidate tree and the previous tree, given that the action step was a grow

Usage

structure_ratio_grow(
  tree,
  current_node,
  current_selec_var,
  p_vars,
  alpha_grow,
  beta_grow
)

Arguments

tree

The current tree

current_node

The current grown node

current_selec_var

The variable selected for the split

p_vars

The number of available predictors.

alpha_grow

The alpha of the growing probability

beta_grow

The beta of the growing probability

Details

For the tree structure ratio of the new tree, we need the probabilities of:

Value

The tree structure ratio

Author(s)

Bruna Wundervald, brunadaviesw@gmail.com.


brunaw/hebart documentation built on June 1, 2022, 8:35 p.m.