Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Machine Learning for Imbalanced Data

You're reading from  Machine Learning for Imbalanced Data

Product type Book
Published in Nov 2023
Publisher Packt
ISBN-13 9781801070836
Pages 344 pages
Edition 1st Edition
Languages
Authors (2):
Kumar Abhishek Kumar Abhishek
Profile icon Kumar Abhishek
Dr. Mounir Abdelaziz Dr. Mounir Abdelaziz
Profile icon Dr. Mounir Abdelaziz
View More author details

Table of Contents (15) Chapters

Preface 1. Chapter 1: Introduction to Data Imbalance in Machine Learning 2. Chapter 2: Oversampling Methods 3. Chapter 3: Undersampling Methods 4. Chapter 4: Ensemble Methods 5. Chapter 5: Cost-Sensitive Learning 6. Chapter 6: Data Imbalance in Deep Learning 7. Chapter 7: Data-Level Deep Learning Methods 8. Chapter 8: Algorithm-Level Deep Learning Techniques 9. Chapter 9: Hybrid Deep Learning Methods 10. Chapter 10: Model Calibration 11. Assessments 12. Index 13. Other Books You May Enjoy Appendix: Machine Learning Pipeline in Production

Summary

In this chapter, we delved into CSL, an alternative to oversampling and undersampling. Unlike data-level techniques that treat all misclassification errors equally, CSL adjusts the cost function of a model to account for the significance of different classes. It includes class weighting and meta-learning techniques.

Libraries such as scikit-learn, Keras/TensorFlow, and PyTorch support cost-sensitive learning. For instance, scikit-learn offers a class_weight hyperparameter to adjust class weights in loss calculation. XGBoost has a scale_pos_weight parameter for balancing positive and negative weights. MetaCost transforms any algorithm into its cost-sensitive version using bagging and a misclassification cost matrix. Additionally, threshold adjustment techniques can enhance metrics such as F1 score, precision, and recall by post-processing model predictions.

Experiments with various data sampling and CSL techniques can help determine the best approach. We’ll extend...

lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime}