Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Data Labeling in Machine Learning with Python

You're reading from  Data Labeling in Machine Learning with Python

Product type Book
Published in Jan 2024
Publisher Packt
ISBN-13 9781804610541
Pages 398 pages
Edition 1st Edition
Languages
Author (1):
Vijaya Kumar Suda Vijaya Kumar Suda
Profile icon Vijaya Kumar Suda

Table of Contents (18) Chapters

Preface Part 1: Labeling Tabular Data
Chapter 1: Exploring Data for Machine Learning Chapter 2: Labeling Data for Classification Chapter 3: Labeling Data for Regression Part 2: Labeling Image Data
Chapter 4: Exploring Image Data Chapter 5: Labeling Image Data Using Rules Chapter 6: Labeling Image Data Using Data Augmentation Part 3: Labeling Text, Audio, and Video Data
Chapter 7: Labeling Text Data Chapter 8: Exploring Video Data Chapter 9: Labeling Video Data Chapter 10: Exploring Audio Data Chapter 11: Labeling Audio Data Chapter 12: Hands-On Exploring Data Labeling Tools Index Other Books You May Enjoy

EDA and data labeling

In this section, we will gain an understanding of what EDA is. We will see why we need to perform it and discuss its advantages. We will also look at the life cycle of an ML project and learn about the role of data labeling in this cycle.

EDA comprises data discovery, data collection, data cleaning, and data exploration. These steps are part of any machine learning project. The data exploration step includes tasks such as data visualization, summary statistics, correlation analysis, and data distribution analysis. We will dive deep into these steps in the upcoming sections.

Here are some real-world examples of EDA:

  • Customer churn analysis: Suppose you work for a telecommunications company and you want to understand why customers are churning (canceling their subscriptions); in this case, conducting EDA on customer churn data can provide valuable insights.
  • Income data analysis: EDA on the Income dataset with predictive features such as education, employment status, and marital status helps to predict whether the salary of a person is greater than $50K.

EDA is a critical process for any ML or data science project, and it allows us to understand the data and gain some valuable insights into the data domain and business.

In this chapter, we will use various Python libraries, such as Pandas, and call the describe and info functions on Pandas to generate data summaries. We will discover anomalies in the data and any outliers in the given dataset. We will also figure out various data types and any missing values in the data. We will understand whether any data type conversions are required, such as converting string to float, for performing further analysis. We will also analyze the data formats and see whether any transformations are required to standardize them, such as the date format. We will analyze the counts of different labels and understand whether the dataset is balanced or imbalanced. We will understand the relationships between various features in the data and calculate the correlations between features.

To summarize, we will understand the patterns in the given dataset and also identify the relationships between various features in the data samples. Finally, we will come up with a strategy and domain rules for data cleaning and transformation. This helps us to predict labels for unlabeled data.

We will plot various data visualizations using Python libraries such as seaborn and matplotlib. We will create bar charts, histograms, heatmaps, and various charts to visualize the importance of features in the dataset and how they depend on each other.

You have been reading a chapter from
Data Labeling in Machine Learning with Python
Published in: Jan 2024 Publisher: Packt ISBN-13: 9781804610541
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}