Machine Learning for OpenCV 4 - Second Edition
by Aditya Sharma, Michael Beyeler (USD), Vishwesh Ravi Shrimali, Michael Beyeler
Summary
In this chapter, we learned all about decision trees and how to apply them to both classification and regression tasks. We talked a bit about data generation, overfitting, and ways to avoid this phenomenon by tweaking pre-pruning and post-pruning settings. We also learned about how to rate the quality of a node split using metrics such as the Gini impurity and information gain. Finally, we applied decision trees to medical data to detect cancerous tissues. We will come back to decision trees towards the end of this book when we will combine multiple trees into what is known as a random forest. But for now, let's move on to a new topic.
In the next chapter, we will introduce another staple of the machine learning world: support vector ...
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