How to do it...

Perform the following steps to visualize the conditional inference tree:

  1. Use the plot function to plot ctree.model built in the last recipe:
        > plot(ctree.model)  
A conditional inference tree of churn data
  1. To obtain a simple conditional inference tree, one can reduce the built model with less input features and redraw the classification tree:
        > daycharge.model = ctree(churn ~ total_day_charge, data
= trainset)
> plot(daycharge.model)
A conditional inference tree using the total_day_charge variable as only a split condition
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset