powered by
Prune a contrast tree
prune(tree, thr = 0.1)
a bottom-up pruned tree with splits corresponding to improvement less than threshold thr removed
thr
a tree model object output from contrast
a split improvement threshold, default is 0.1