dtree_split_val {scorecardModelUtils}R Documentation

Getting the split value for terminal nodes from decision tree

Description

The function takes a ctree type model, with only one numerical variable, as argument input and gives a dataframe with the minimum and maximum value of each node. The intervals are open ended at lower limit and closed at upper limit.

Usage

dtree_split_val(desc_model, variable)

Arguments

desc_model

ctree class model with one variable

variable

numerical variable name which on which decision tree was run, to be passed as string

Value

The function returns a dataframe giving the lower and upper bound of split values of each node.

Author(s)

Arya Poddar <aryapoddar290990@gmail.com>

Examples

data <- iris
data$Y <- ifelse(data$Species=="setosa",1,0)

[Package scorecardModelUtils version 0.0.1.0 Index]