Skip to Content
Practical Predictive Analytics
book

Practical Predictive Analytics

by Ralph Winters
June 2017
Beginner to intermediate content levelBeginner to intermediate
576 pages
15h 22m
English
Packt Publishing
Content preview from Practical Predictive Analytics

Growing the tree

Our original node always starts at the root of the tree. In the preceding diagram, the first node merely starts with a description of how the population breaks down by gender. In this case, females make up the majority class at 58% of the population. The goal in decision of tree algorithms is to always grow a tree and improve predictions. So, at this point, we want to do better than 58% prediction for gender.

As we grow the tree, two questions will always need to be taken into consideration:

  • Which variable will best improve the prediction for each of the classes of the target variable at that point?
  • For that variable, what is the best split point that will segment a categorical variable into two parts, or divide a continuous ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Superstream: Analytics Engineering

Data Superstream: Analytics Engineering

Alistair Croll, Anna Filippova, Emilie Schario, Lewis Davies, Jacob Frackson, Benn Stancil, Nick Acosta, Elizabeth Caley
R: Predictive Analysis

R: Predictive Analysis

Tony Fischetti, Eric Mayor, Rui Miguel Forte
Python: Advanced Predictive Analytics

Python: Advanced Predictive Analytics

Ashish Kumar, Joseph Babcock

Publisher Resources

ISBN: 9781785886188Supplemental Content