Day 61 – Ridge Regression and Lasso Regression

Ridge Regression

Ridge regression also knows Tikhonov regularization. Ridge regression helps weights to keep minimal and makes the learning algorithms fit the data.  The main motive is to penalize significant coefficients for loss functions, and the model intent to avoid large coefficients.  Tune the hyperparameters in ridge regression to regularize the model.  Alpha relates to weights. If alpha=0, then it depicts Linear Regression.  On the other hand, if the alpha in considerable value then weights close to 0, then the flat line goes towards the data’s mean.  So tuning the alpha hyperparameter gets the best outcome of ridge regression.

Scikit Learn library:

from sklearn.linear_model import Ridge

Lasso Regression:

The abbreviation of Lasso Regression is Least Absolute Shrinkage and Selection Operator Regression. It is the same as Ridge regression. However, it uses the L1 regularization.  The main characteristic of Lasso that it reduces the weights of the essential features. Another advantage of using Lasso regression, it automatically carries feature selection which is non-zero, and outputs a sparse model.

Scikit Learn library:
from sklearn.linear_model import Lasso

Further Reading

Posts on Artificial IntelligenceDeep LearningMachine Learning, and Design Thinking articles:

Customer Sales Order Delivery Time Prediction Using ML Linear Regression

No Free Lunch Theorem(NFL) in Artificial Intelligence/Machine Learning

Rasa X Open Source Conversational AI UI Walk-through

Artificial Intelligence Chatbot Using Neural Network and Natural Language Processing

Sales Order Delivery Days Prediction Using ML Decision Tree Regression

Underfitting, Overfitting, and Regularization

Pre-trained Models for Transfer Learning

EMNIST Dataset Handwritten Character Digits

MNIST Largest Handwritten Digits Database

Types of Neural Networks

Predict an Image Using MobileNetV3 Pre-trained Model for Mobile

Code Example: Import EMNIST Dataset and Print Handwritten Letters

Customer Sales Order Delivery Time Prediction Using Neural Network

Customer Sales Order Delivery Time Prediction Using Random Forest Regression

Posts on SAP:

How to Transform Your Business with SAP Data Intelligence?

SAP AI Business Services – Business Entity Recognition

SAP AI Business Services – Document Information Extraction

SAP AI Business Services – Service Ticket Intelligence

SAP AI Business Services: Document Classification

SAP AI Business Services

SAP Intelligent Robotic Process Automation, Use Case, Benefits, and Available Features

SAP Conversational AI

A simple wireframe design for SAP FIORI UI Chatbot

Simplified SAP GTS Customs Export/Import Documentation with SAP Event Management

How to create your own SAP Fiori Chatbot in 10 days?

By |2021-06-18T13:26:23+00:00June 18th, 2021|Machine Learning|0 Comments

About the Author:

Leave A Comment