Abstract
In this chapter, we will develop the theory for binary decision trees. Decision trees can be used to classify data, and fall into the Learning category in our Autonomous Learning taxonomy. Binary trees are easiest to implement because each node branches to two other nodes, or none. We will create functions for the Decision Trees and to generate sets of data to classify. Figure 7.1 shows a simple binary tree. Point “a” is in the upper left quadrant. The first binary test finds that its x value is greater than 1. The next test finds that its y value is greater than 1 and puts it in set 2. Although the boundaries show square regions, the binary tree really tests for regions that go to infinity in both x and y.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsReferences
Sebastian Raschka. Python Machine Learning. [PACKT], 2015.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Michael Paluszek and Stephanie Thomas
About this chapter
Cite this chapter
Paluszek, M., Thomas, S. (2019). Data Classification with Decision Trees. In: MATLAB Machine Learning Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3916-2_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3916-2_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3915-5
Online ISBN: 978-1-4842-3916-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)