当前位置:网站首页>Ridge regression and LASSO regression
Ridge regression and LASSO regression
2022-08-09 04:19:00 【Full stack O-Jay】
Let's talk about the concepts of generalization and regularization. Generalization refers to the performance of a trained machine learning model when dealing with unencountered samples.That is, the ability of the model to process new samples.Many times the model is as fierce as a tiger in the training set, but it is outrageous (high error rate) in the test set, that is, the generalization ability is poor.Because the model only learns the characteristics of the data in the training set. For example, the training set is all cats in the daytime. It is very likely that if you give a photo of a cat in the night, it will not be able to distinguish it. This is also called overfitting.In order to prevent over-fitting and improve generalization ability, regularization came into being. It refers to adding some rules (restrictions) to the objective function that needs to be trained, that is, adding a regular term to the loss function..The commonly used regularization methods are divided into L1 regularization, L2 regularization, and the regularization terms used represent L1 norm and L2 norm respectively.For more details, please refer to this Second to understand regularization.
Adding a regular term after the original loss function can reduce the parameters learned by the modelw w w, which can make the model more generalizable.
A linear model that performs L1 norm regularization on the parameter space is called LASSO Regression (LASSO Regression);
L2 norm on the parameter spaceThe linear model of number regularization is called Ridge Regression.
Difference between Ridge Regression and LASSO Regression:
With Regular Variables λ \lambda λ change, based on ridge regressionstrong>The fitting curve of the improved polynomial regression algorithm is always a curve, and it is difficult to obtain a sloping straight line; the fitting curve based on the improved polynomial regression algorithm based on LASSO regressionThe resultant curve will quickly turn into a sloping curve and eventually an almost horizontal straight line.
边栏推荐
- BaseDexClassLoader的正确使用方式
- TASSEL软件导入plink格式文件报错
- "IP" command to configure network interface
- ceph创建存储池,映射,删除练习
- 提升用户体验,给你的模态弹窗加个小细节
- Alibaba Cloud Tianchi Contest Question (Machine Learning) - Repeat Purchase Prediction of Tmall Users (Complete Code)
- 电脑系统重装后如何开启Win11实时辅助字幕
- 5. Index optimization practice
- 【每日一题】761. 特殊的二进制序列
- FFmpeg编译支持x264/openH264/dash
猜你喜欢
人类微生物组和缺失遗传力--读论文
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:自适应滤波器的应用
pr22.5最新版下载地址
两种K线形态预示今日伦敦银走向
HyperLynx(四)差分传输线模型
电脑重装系统如何在 Win11查看显卡型号信息
【精品向】你真的会写测试用例么?全网超大型测试用例攻略
3年半测试经验,20K我都没有,看来是时候跳槽了...
Alibaba Cloud Tianchi Contest Question (Machine Learning) - Repeat Purchase Prediction of Tmall Users (Complete Code)
【平衡二叉搜索树】细撕AVL树的插入操作
随机推荐
MySQL:意向共享锁和意向排它锁 | 死锁 | 锁的优化
欧拉22.02系统 mysql5.7 arm版本的安装包, 哪里能下载到?
数据库指标是怎么个意思
2022高压电工考试试题及答案
已解决ModuleNotFoundError: No module named ‘Workbook‘
维护RAC日志轮转
松柏集(云衣裳)
【Redis底层解析】字典类型
分布式数据库怎样才能“叫好又卖座”
钉钉与RStudio快捷方式冲突--钉钉快捷键设置
Alibaba Cloud Tianchi Contest Question (Machine Learning) - Repeat Purchase Prediction of Tmall Users (Complete Code)
AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘
simple math formula calculation
别跟客户扯细节
Dingding conflicts with RStudio shortcuts--Dingding shortcut settings
机器人工程师入门知识框架(思维导图)
NanoDet代码逐行精读与修改(一)Backbone
『HarmonyOS』Page与AbilitySlice的生命周期
Detailed explanation of Oracle's windowing function
Device Reliability vs. Temperature