Skip to Content
Hands-On Machine Learning with scikit-learn and Scientific Python Toolkits
book

Hands-On Machine Learning with scikit-learn and Scientific Python Toolkits

by Tarek Amr
July 2020
Intermediate to advanced
384 pages
8h 38m
English
Packt Publishing
Content preview from Hands-On Machine Learning with scikit-learn and Scientific Python Toolkits
Making Decisions with Trees

In this chapter, we are going to start by looking at our first supervised learning algorithm—decision trees. The decision tree algorithm is versatile and easy to understand. It is widely used and also serves as a building block for the numerous advanced algorithms that we will encounter later on in this book. In this chapter, we will learn how to train a decision tree and use it for either classification or regression problems. We will also understand the details of its learning process in order to know how to set its different hyperparameters. Furthermore, we will use a real-world dataset to apply what we are going to learn here in practice. We will start by getting and preparing the data and apply our algorithm ...

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

Interpretable Machine Learning with Python

Interpretable Machine Learning with Python

Serg Masís

Publisher Resources

ISBN: 9781838826048Supplemental Content