get_split_criterion: Get split criterion (levels) for factor, character or...

View source: R/get_split_criterion.R

get_split_criterionR Documentation

Get split criterion (levels) for factor, character or numerical variables

Description

Get split criterion (levels) for factor, character or numerical variables

Usage

get_split_criterion(tree_info_df, node_id, train_data_df, rf_list)

Arguments

tree_info_df

Data frame containing information about the structure of the decision tree, which is built like a "treeInfo()" data frame from the package "ranger"

node_id

Node ID of the node whose parent ID is to be determined

train_data_df

Data frame of the training data with which the random forest was trained

rf_list

Random forest, which is built like the one you get from ranger()

Value

Character with levels or values passed from the parent node to the considered node

Author(s)

Lea Louisa Kronziel, M.Sc.


imbs-hl/timbR documentation built on April 17, 2025, 2:08 p.m.