Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Machine Learning with Microsoft Excel 2019

You're reading from  Hands-On Machine Learning with Microsoft Excel 2019

Product type Book
Published in Apr 2019
Publisher Packt
ISBN-13 9781789345377
Pages 254 pages
Edition 1st Edition
Languages
Author (1):
Julio Cesar Rodriguez Martino Julio Cesar Rodriguez Martino
Profile icon Julio Cesar Rodriguez Martino

Table of Contents (17) Chapters

Preface Section 1: Machine Learning Basics
Implementing Machine Learning Algorithms Hands-On Examples of Machine Learning Models Section 2: Data Collection and Preparation
Importing Data into Excel from Different Data Sources Data Cleansing and Preliminary Data Analysis Correlations and the Importance of Variables Section 3: Analytics and Machine Learning Models
Data Mining Models in Excel Hands-On Examples Implementing Time Series Section 4: Data Visualization and Advanced Machine Learning
Visualizing Data in Diagrams, Histograms, and Maps Artificial Neural Networks Azure and Excel - Machine Learning in the Cloud The Future of Machine Learning Assessment

Understanding unbalanced datasets

To be able to compare the results of different variables, we need to take into account the different number of samples of each class. Let's suppose that we want to train a machine learning model to predict whether a given passenger would survive, based on age group, gender, and class. If we plot the distribution of values in the survived variable, we will see the following:

It is clear from the preceding diagram and table that there are nearly twice as many non-survivors than survivors. If we use this dataset as is, we are introducing a bias to our dataset that will affect the results. Predicting 0 for the survival variable will be approximately two times more probable than predicting 1. An exception to this statement are decision trees and their related predictive models (such as random forests and XGBoost), which can correctly deal with...

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}