当前位置:网站首页>L1, L2 norm
L1, L2 norm
2022-07-19 03:48:00 【elkluh】
We know that the loss norm of linear regression can be expressed by the following formula :

a Is the coefficient we require ,y It's the forecast ,f It's the target value . The optimization strategy is to make E The smaller the better. .
The purpose of regularization is , Is that the model is not so sensitive to noise , Reduce overfitting , Make the model more generalized .
L2 norm
If we want to use L2 Norm is ridge regression (ridge regression), Then there are

The function is to add a second formula , prevent a Too big ,a Too much will make the model very sensitive to noise , Cause over fitting , So for E Regularize , narrow a The value of , Prevent over fitting .
The solution process is :
(1)
(2)
(3)
(4)
L1 norm
L1 norm :
, The sum of absolute values . be aware L1 Regularization is the sum of the absolute values of weights ,E Is a function with an absolute value symbol , Therefore, it is not completely differentiable .
The objective function is
L1 Regularization is the solution to sparse values ,ai A very small value in will be approximated to 0. such L1 Regularization will automatically select important features , Remove unimportant features .
summary
a ------> L1 Regularization ------> Make the result smoother
a ------> L2 Regularization ------> Make the result more sparse 
On the left is L2 Regularized image , The picture on the right is L1 Regularization . because L2 The image of is a circle , Therefore, it is easy to produce smooth results , and L1 It's a diamond , It is easy to generate intersections on the coordinate axis , Therefore, there will be sparse relaxation . The outermost blue line is to produce the minimum distance , So taking the nearest intersection is the optimal solution .
边栏推荐
- Chapter 4 user data analysis
- 【LeetCode】346. Moving average in data flow
- DataX DorisWriter 插件文档
- Ext JS的数字类型处理及便捷方法
- Ouvrir le cvsharp d'ai pour trouver une petite image (version de cas)
- Chapter 4 用户数据分析
- 时间轴组件
- Digital type processing and convenient method of ext JS
- 模块(block、module)的介绍
- 电脑绘画软件哪个好用:试试Artweaver Plus吧,媲美sai绘画软件 | 最新版本的artweaver下载
猜你喜欢
随机推荐
Ouvrir le cvsharp d'ai pour trouver une petite image (version de cas)
MySQL addition, deletion, query and modification (basic)
Web semantics (emphasis tag EM italic) (emphasis tag strong bold) (custom list: DL, DT, DD)
【LeetCode】558. Intersection of quadtree
Unity solves the problem of Z-fighting caused by overlapping objects with the same material
windows10:vscode下go语言的适配
鼠标滑动两张图片前后对比js插件
Number of supported question banks and examination question banks of swiftui examination question bank project (tutorial includes source code)
线程的私有存储空间
[C语言勘误]数组长度的函数内获取方式错误
automake中文手册_incomplete
基于Pandoc与VSCode的 LaTeX环境配置
ulsm配置案例
Latex environment configuration based on pandoc and vscode
企业钟情于混合 App 开发,小程序容器技术能让效率提升 100%
第二章:新闻主题分类任务
掩饰性治疗
Properties of Gaussian distribution (including code)
2022 electrician Cup: emergency material distribution in 5g network environment (optimization)
Understanding of random forest









