Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MATLAB for Machine Learning

You're reading from   MATLAB for Machine Learning Unlock the power of deep learning for swift and enhanced results

Arrow left icon
Product type Paperback
Published in Jan 2024
Publisher Packt
ISBN-13 9781835087695
Length 374 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Giuseppe Ciaburro Giuseppe Ciaburro
Author Profile Icon Giuseppe Ciaburro
Giuseppe Ciaburro
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Part 1: Getting Started with Matlab
2. Chapter 1: Exploring MATLAB for Machine Learning FREE CHAPTER 3. Chapter 2: Working with Data in MATLAB 4. Part 2: Understanding Machine Learning Algorithms in MATLAB
5. Chapter 3: Prediction Using Classification and Regression 6. Chapter 4: Clustering Analysis and Dimensionality Reduction 7. Chapter 5: Introducing Artificial Neural Network Modeling 8. Chapter 6: Deep Learning and Convolutional Neural Networks 9. Part 3: Machine Learning in Practice
10. Chapter 7: Natural Language Processing Using MATLAB 11. Chapter 8: MATLAB for Image Processing and Computer Vision 12. Chapter 9: Time Series Analysis and Forecasting with MATLAB 13. Chapter 10: MATLAB Tools for Recommender Systems 14. Chapter 11: Anomaly Detection in MATLAB 15. Index 16. Other Books You May Enjoy

Dealing with imbalanced datasets in MATLAB

Dealing with imbalanced datasets is a common challenge in machine learning, particularly in classification tasks where one class significantly outnumbers the other(s). Handling imbalanced datasets is crucial because models trained on such data may exhibit bias toward the majority class and perform poorly in predicting the minority class.

Understanding oversampling

Oversampling is a method that’s employed to tackle class imbalance in a dataset by augmenting the number of instances belonging to the minority class. The aim is to balance the class distribution and prevent machine learning models from being biased toward the majority class. Oversampling is particularly useful when you have limited data for the minority class. There are several methods for oversampling, including the following:

  • Random oversampling: In random oversampling, you randomly select and duplicate instances from the minority class until the class distribution...
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 $19.99/month. Cancel anytime