Back to Browse

LASSO (L1) vs Ridge (L2) vs Elastic Net Regularization in Python | Machine Learning

2.0K views
Feb 1, 2022
11:46

LASSO (Least Absolute Shrinkage and Selection Operator) is also called L1 regularization, and Ridge is also called L2 regularization. Elastic Net is the combination of LASSO and Ridge. All three are techniques commonly used in machine learning to correct overfitting. In this tutorial, we will cover 👉 What's the difference between LASSO (L1), Ridge (L2), and Elastic Net? 👉 How to run LASSO for classification model using Python sklearn? 👉 How to run Ridge for classification model using Python sklearn? 👉 How to run Elastic Net for classification model using Python sklearn? 👉 How to compare the performance of LASSO, Ridge, and Elastic Net? ⏰ Timecodes ⏰ 0:00 - Intro 0:42 - Step 0: LASSO (L1) Vs Ridge (L2) Vs. Elastic Net 2:20 - Step 1: Import Libraries 2:57 - Step 2: Read Data 3:25 - Step 3: Train Test Split 3:42 - Step 4: Standardization 4:55 - Step 5: Logistic Regression With No Regularization 6:43 - Step 6: LASSO 8:05 - Step 7: Ridge 9:22 - Step 8: Elastic Net 10:21 - Summary ❤️ Blog post with code for this video: https://medium.com/@AmyGrabNGoInfo/lasso-l1-vs-ridge-l2-vs-elastic-net-regularization-for-classification-model-409c3d86f6e9 📒 Code Notebook: https://mailchi.mp/a30206d20b9a/in5ymnmlkv 🚛 GrabNGoInfo Machine Learning Tutorials Inventory: https://medium.com/grabngoinfo/grabngoinfo-machine-learning-tutorials-inventory-9b9d78ebdd67 🏪 Purchase data science and computer science themed products in my Amazon store: https://amzn.to/40HUTsl ✅ Join Medium Membership: If you are not a Medium member and would like to support me to keep creating free content (😄 Buy me a cup of coffee ☕), join Medium membership through this link: https://medium.com/@AmyGrabNGoInfo/membership You will get full access to posts on Medium for $5 per month, and I will receive a portion of it. Thank you for your support! 🧱Other tutorials like this: https://www.youtube.com/playlist?list=PLVppujud2yJrTGSjtN7j8gqCthOVyyk4W 🔥 Check out more machine learning tutorials on my website! https://grabngoinfo.com/tutorials/ 📣 Speech software used in the video: Descript https://www.descript.com/?lmref=h7XYQw 📧 CONTACT me at [email protected] 👩🏻‍💻 Follow me on LinkedIn: https://www.linkedin.com/company/grabngoinfo/ #lasso #regularization #machinelearning #datascience #grabngoinfo

Download

1 formats

Video Formats

360pmp425.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

LASSO (L1) vs Ridge (L2) vs Elastic Net Regularization in Python | Machine Learning | NatokHD