Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Machine Learning for Data Mining

You're reading from   Machine Learning for Data Mining Improve your data mining capabilities with advanced predictive modeling

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781838828974
Length 252 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jesus Salcedo Jesus Salcedo
Author Profile Icon Jesus Salcedo
Jesus Salcedo
Arrow right icon
View More author details
Toc

Balancing data

In this section, we will see how we can oversample or undersample different aspects of the outcome variable to improve our accuracy. We will change our dataset to see this. Refer to the Loan dataset provided with the GitHub link of this book.

The need for balancing data

To demonstrate this, we will use a different dataset. Select the Var. File node on the canvas. Navigate to where the file is located by clicking the triple dots beside the file field. Then select the Loan dataset:

Go to the Types tab and change the Loan predictor's Role to Target. This is the variable that we will predict:

Click on Read Values. Then, click on OK. In this example, we are predicting whether or not people have a loan.

Let...

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
Banner background image