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
Imbalanced Learning – Not Even 1% Win the Lottery

Cases where your classes are neatly balanced are more of an exception than the rule. In most of the interesting problems we'll come across, the classes are extremely imbalanced. Luckily, a small fraction of online payments are fraudulent, just like a small fraction of the population catch rare diseases. Conversely, few contestants win the lottery and fewer of your acquaintances become your close friends. That's why we are usually interested in capturing those rare cases.

In this chapter, we will learn how to deal with imbalanced classes. We will start by giving different weights to our training samples to mitigate the class imbalance problem. Afterward, we will learn about other techniques, ...

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