Your Mission: Learn from Data
Decision trees come in two forms: classification trees and regression trees. In both cases, you ask questions and take a branch depending on the answer. Once you reach a leaf node, you reach a decision. The questions asked can be categorical (e.g., which color) or numerical (e.g., how high). For a classification tree, the leaf is a category, like inside or outside a paper bag. For a regression tree, the leaf is an equation that gives a numeric value.
You can present your decision tree as a tree or a list of rules. In tree form, it looks like a flowchart. You can then transform this flowchart into a list of if-then-else rules by writing down the questions at each branch. You can also transform the rules into a ...
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.
Read now
Unlock full access