Pruned decision tree in r, ctree

601 Views Asked by At

I'm developing a binary decision tree in R with the "party" package, ctree. Further, I want to prune the tree with some controls (ctree_control) e.g., maxdepth, minsplit, and mtry. The model looks something like this:

tree <- ctree(Class ~ ., data = train, controls = ctree_control(mincriterion = 0.99,minsplit = 500))

How can I visualize the controls to choose the optimal criterion?

0

There are 0 best solutions below