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
The Data Analysis Workshop

You're reading from  The Data Analysis Workshop

Product type Book
Published in Jul 2020
Publisher Packt
ISBN-13 9781839211386
Pages 626 pages
Edition 1st Edition
Languages
Authors (3):
Gururajan Govindan Gururajan Govindan
Profile icon Gururajan Govindan
Shubhangi Hora Shubhangi Hora
Profile icon Shubhangi Hora
Konstantin Palagachev Konstantin Palagachev
Profile icon Konstantin Palagachev
View More author details

Table of Contents (12) Chapters

Preface
1. Bike Sharing Analysis 2. Absenteeism at Work 3. Analyzing Bank Marketing Campaign Data 4. Tackling Company Bankruptcy 5. Analyzing the Online Shopper's Purchasing Intention 6. Analysis of Credit Card Defaulters 7. Analyzing the Heart Disease Dataset 8. Analyzing Online Retail II Dataset 9. Analysis of the Energy Consumed by Appliances 10. Analyzing Air Quality Appendix

Feature Selection with Lasso

Feature selection is one of the most important steps to be performed before building any kind of machine learning model. In a dataset, not all the columns are going to have an impact on the dependent variable. If we include all the irrelevant features for model building, we'll end up building a model with bad performance. This gives rise to the need to perform feature selection. In this section, we will be performing feature selection using the lasso method.

Lasso regularization is a method of feature selection where the coefficients of irrelevant features are set to zero. By doing so, we remove the features that are insignificant and only the remaining significant features are included for further analysis.

Let's perform lasso regularization for our mean- and iterative-imputed DataFrames.

Lasso Regularization for Mean-Imputed DataFrames

Let's perform lasso regularization for the mean-imputed DataFrame 1.

As the first...

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}