Skip to main content

Data Classification with Decision Trees

  • Chapter
  • First Online:
  • 5198 Accesses

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Sebastian Raschka. Python Machine Learning. [PACKT], 2015.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Michael Paluszek and Stephanie Thomas

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics