Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Debugging Machine Learning Models with Python

You're reading from   Debugging Machine Learning Models with Python Develop high-performance, low-bias, and explainable machine learning and deep learning models

Arrow left icon
Product type Paperback
Published in Sep 2023
Publisher Packt
ISBN-13 9781800208582
Length 344 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Ali Madani Ali Madani
Author Profile Icon Ali Madani
Ali Madani
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Part 1:Debugging for Machine Learning Modeling
2. Chapter 1: Beyond Code Debugging FREE CHAPTER 3. Chapter 2: Machine Learning Life Cycle 4. Chapter 3: Debugging toward Responsible AI 5. Part 2:Improving Machine Learning Models
6. Chapter 4: Detecting Performance and Efficiency Issues in Machine Learning Models 7. Chapter 5: Improving the Performance of Machine Learning Models 8. Chapter 6: Interpretability and Explainability in Machine Learning Modeling 9. Chapter 7: Decreasing Bias and Achieving Fairness 10. Part 3:Low-Bug Machine Learning Development and Deployment
11. Chapter 8: Controlling Risks Using Test-Driven Development 12. Chapter 9: Testing and Debugging for Production 13. Chapter 10: Versioning and Reproducible Machine Learning Modeling 14. Chapter 11: Avoiding and Detecting Data and Concept Drifts 15. Part 4:Deep Learning Modeling
16. Chapter 12: Going Beyond ML Debugging with Deep Learning 17. Chapter 13: Advanced Deep Learning Techniques 18. Chapter 14: Introduction to Recent Advancements in Machine Learning 19. Part 5:Advanced Topics in Model Debugging
20. Chapter 15: Correlation versus Causality 21. Chapter 16: Security and Privacy in Machine Learning 22. Chapter 17: Human-in-the-Loop Machine Learning 23. Assessments 24. Index 25. Other Books You May Enjoy

Machine learning at a glance

You need three fundamental elements to build a machine learning model: an algorithm, data, and computing power (Figure 1.1). A machine learning algorithm needs to be fed with the right data and trained using the necessary computing power. It can then be used to predict what it has been trained on for unseen data:

Figure 1.1 – The three elements in the machine learning triangle

Figure 1.1 – The three elements in the machine learning triangle

Machine learning applications can be generally categorized as automation and discovery. In the automation category, the goal of the machine learning model and the software and hardware systems built around it is to do the tasks that are possible and usually easy but tedious, repetitive, boring, or dangerous for human beings. Some examples of this include recognizing damaged products in manufacturing lines or recognizing employees’ faces at entrances in high-security facilities. Sometimes, it is not possible to use human beings for some of these tasks, although the task would be easy. For example, for face recognition on your phone, if your phone was stolen, you would not be there to recognize that the person who is trying to log into your phone is not you and your phone should be able to do it by itself. But we cannot come up with a generalizable mathematical formulation for these tasks to tell the machine what to do in each situation. So, the machine learning model learns how to come up with its prediction, for example, in terms of recognizing faces, according to the identified patterns in the data.

On the other hand, in the discovery category of machine learning modeling, we want the models to provide information and insight about unknowns that are either not easy or fully discovered, or even impossible, for human experts or non-experts to extract. For example, discovering new drugs for cancer patients is not a task where you can learn all aspects of it by going through a couple of courses and books. In such cases, machine learning can help us come up with new insights to help discover new drugs.

For both discovery and automation, different types of machine learning modeling can help us achieve our goals. We will explore this in the next section.

You have been reading a chapter from
Debugging Machine Learning Models with Python
Published in: Sep 2023
Publisher: Packt
ISBN-13: 9781800208582
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image