dtree_split_val {scorecardModelUtils} | R Documentation |
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.
dtree_split_val(desc_model, variable)
desc_model |
ctree class model with one variable |
variable |
numerical variable name which on which decision tree was run, to be passed as string |
The function returns a dataframe giving the lower and upper bound of split values of each node.
Arya Poddar <aryapoddar290990@gmail.com>
data <- iris
data$Y <- ifelse(data$Species=="setosa",1,0)