当前位置:网站首页>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.
边栏推荐
- MySql.Data.MySqlClient.DBNull
- 钉钉与RStudio快捷方式冲突--钉钉快捷键设置
- Moonriver与Shiden的XCM集成现已上线
- 2022R1快开门式压力容器操作考试模拟100题及在线模拟考试
- Dingding conflicts with RStudio shortcuts--Dingding shortcut settings
- 337. 打家劫舍 III
- NanoDet代码逐行精读与修改(五.2)计算Loss
- 特征工程实战篇
- 了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:维纳滤波器Wiener Filter,LMS
- 阿里云天池大赛赛题(机器学习)——工业蒸汽量预测(完整代码)
猜你喜欢

TASSEL软件导入plink格式文件报错

MATLAB | 比生命游戏更自由的生命游戏

已解决ModuleNotFoundError: No module named ‘Workbook‘

Cluster deployment using ceph-deploycep with 3 disks as dedicated osd
Improve the user experience and add a small detail to your modal popup

2022R1快开门式压力容器操作考试模拟100题及在线模拟考试

MySQL:意向共享锁和意向排它锁 | 死锁 | 锁的优化

了解CV和RoboMaster视觉组(五)CNN没有不变性?

Polygon zkEVM Prover

做现货白银前这些要诀应先记起来
随机推荐
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment
NanoDet代码逐行精读与修改(零)Architecture
【Pyspark】udf使用入门
sklearn(一)
AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘
稳定性测试怎么做,这篇文章彻底讲透了!
【数学】点积与叉积
软件质效领航者 | 优秀案例•东风集团DevOps改革项目
了解CV和RoboMaster视觉组(五)图像处理中使用的滤波器
消失的遗传力--wiki
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:自适应滤波器的应用
XJTUSE专业课与实验指南
Session、cookie、token有什么区别?
MySQL: redo log log - notes for personal use
gopacket源码分析
761. 特殊的二进制序列(分治)
Talking about the process and how to create it
服务端修改Cookie——跨域cookie发送机——通信加密——异或加密
做现货白银前这些要诀应先记起来
Base64编码和图片转化