Huber regression
In least square learning methods, we make use of ℓ2 loss to make sure that we get a suitable outcome. However, in the robust point of view, it is always better to make use of the least absolute as the main criterion, i.e.

θ^LA=argminθJLA(θ),JLA(θ)=∑i=1n|ri|

where ri=fθ(xi)−yi is the residual error. By doing so, it is possible to make the learning method more robust at the cost of accuracy.
In order to balance robustness and accuracy, Huber loss may be a good alternative:

ρHuber(r)={ r2/2η|r|−η2/2(|r|≤η)(|r|>η)

Then the optimization goal turns out to be:

minθJ(θ),J(θ)=∑i=1nρHuber(ri)

As usual, take the linear parameterized model as an example:

fθ(x)=∑j=1bθjϕj(x)=θTϕ(x)

For simplicity, we omit the details and give the final outcome (more details needed? refer to ℓ1 constrained LS):

θ^=argminθJ~(θ),J~(θ)=12∑i=1nω~iri+C

where ω~i={1η/|r~i|(|r~i|≤η)(|r~i|>η) and C=∑i:|r~i|>η(η|r~i|/2−η2/2) are independent of θ.
Therefore, the solution can be formulated as:

θ^=(ΦTW~Φ)†ΦTW~y

where W~=diag(ω~1,…,ωn).
By iteration, we can solve θ^ as an estimation of θ. The corresponding MATLAB codes are given below:

n=50; N=1000;
x=linspace(-3,3,n)'; X=linspace(-4,4,N)';
y=x+0.2*randn(n,1); y(n)=-4;p(:,1)=ones(n,1); p(:,2)=x; t0=p\y; e=1;
for o=1:1000r=abs(p*t0-y); w=ones(n,1); w(r>e)=e./r(r>e);t=(p'*(repmat(w,1,2).*p))\(p'*(w.*y));if norm(t-t0)<0.001, break, endt0=t;
end
P(:,1)=ones(N,1); P(:,2)=X; F=P*t;figure(1); clf; hold on; axis([-4,4,-4.5,3.5]);
plot(X,F,'g-'); plot(x,y,'bo');

Tukey regression
The Huber loss combined ℓ1 loss and ℓ2 loss to balance robustness and accuracy. Since ℓ1 loss is concerned, the outliers may have an enormous impact on the final outcome. To tackling that, Tukey may be a considerable alternative:

ρTukey(r)=⎧⎩⎨(1−[1−r2/η2]3)η2/6η2/6(|r|≤η)(|r|>η)

Of course, the Tukey loss is not a convex funciton, that is to say, there may be serveral local optimal solution. In actual applications, we apply the following weights:

ω={(1−r2/η2)20(|r|≤η)(|r|>η)

Hence the outliers can no longer put any impact on our estimation.

Huber损失最小化学习法相关推荐

  1. 图解机器学习-Huber损失最小化学习-matlab源码及结果

    鲁棒这个词第一次听是在学习c语言的时候,那时候还学了一个健壮性,两个词不知道为什么觉得很粗鲁,跟程序没啥关系,感觉是凑上来的性质,下面就看看在机器学习里面的鲁棒是个啥东西? 最小二乘法学习的过程中如果 ...

  2. 有监督回归:最小二乘学习法

    1.前言 接下来几篇博客将总结回归问题中的各种有监督学习算法. 本片博客介绍回归问题中的最基本算法--最小二乘学习法:下一篇介绍为了避免过拟合而设置约束条件的最小二乘学习法.之后,我也会介绍难度高一点 ...

  3. 二元学习法3.0:三把学习大剑,打通学习的底层密码_学习方法

    单纯靠机会赚钱的时代已经过去,未来是认知赚钱的时代. 前两天还跟朋友聊到这个话题,未来的机会将会不断涌现,人工智能.5G.万物互联.虚拟现实-- 而这些东西,都跟知识挂钩.以前那种胆大就能挣钱,站在风 ...

  4. 费曼学习法与孔子温故知新学习法为两大重要学习法,前者外向表现,后者内省提升

    费曼学习法与孔子温故知新学习法为两大重要学习法,前者外向表现,后者内省提升 附前者链接 https://blog.csdn.net/wo541075754/article/details/101554 ...

  5. 《贝叶斯思维:统计建模的Python学习法》——1.8 讨论

    本节书摘来异步社区<贝叶斯思维:统计建模的Python学习法>一书中的第1章,第1.8节,作者:[美]Allen B. Downey,更多章节内容可以访问云栖社区"异步社区&qu ...

  6. 【⌛工欲善其事,必先利其器⏳】葵花宝典の费曼学习法

    FBI Warning! 以下为葵花宝典绝密信息,请各位C站的宝友注意保密!阅后即焚,朝东南方向大喊三声"牛逼!",然后径直离开,千万不能回头!切记切记! 废话不多说,巨佬镇楼! ...

  7. 四步相移法怎么获得相位信息_如何拥有超强的学习能力?世界公认的费曼学习法了解一下...

    我们都听说过"方法比努力更重要"这句话,在孩子的学习过程中,用错了方法会浪费大量的时间,一个好的方法能够事半功倍. 比如孩子记了笔记却不复习,和不记笔记是一样的,如果将知识理解后再 ...

  8. 一个帮助我100%拿offer的面试学习法

    大家好,我是若川.今天周日,再分享一篇相对轻松的文章.文中说的面试学习法有一定的借鉴意义.另外我也推荐大家每隔一段时间不为跳槽的更新自己简历,也是对自己一阶段的梳理总结,毕竟功在平时. 哈喽大家好,我 ...

  9. [能力提升][费曼学习法]学习方法

    [背景知识] 费曼学习法 费曼学习法可以简化为四个单词:Concept (概念).Teach (教给别人).Review (评价).Simplify (简化). 第一步:把它教给一个小孩子. 第二步: ...

最新文章

  1. 重磅!MaxCompute助力阿里开源自研语音识别模型DFSMN,准确率高达96.04%
  2. React Native在移动端APP上实现拍照与照片上传功能
  3. 用 Scikit-Learn 和 Pandas 学习线性回归
  4. 最全蚂蚁金服高级Java面试题目(3面)
  5. 【转载保存】Lucene7.1.0超详细的使用文档
  6. 1.Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server(tomcat突然用不了)...
  7. c#同时上传文件和参数,Java接收的完整教程,炒鸡简单!网上的教程弱爆了!
  8. 找出字符串数组中的等于某字符串的所有索引位置
  9. python实现图灵机器人帮你回复微信好友消息
  10. html画布画带百分比饼状图,echart.js如何画带百分比的饼状图
  11. linux 中ifconfig命令 结果解释
  12. FPGA同步复位异步复位
  13. RTCM协议阅读——RTCM数据解析
  14. 全国省、市、县(区)编码表
  15. 离职原因之3B分类问题
  16. chrome浏览器怎么设置编码
  17. 分布式强化学习方法汇总
  18. append() 与appendTo 比较
  19. 前端用Mockjs模拟数据
  20. 高速高精度直线电机模组运输存放及安装维护的注意事项

热门文章

  1. 一步安装openssh的脚本
  2. 【stanford】梯度、梯度下降,随机梯度下降
  3. 终于从yahoo手中把域名抢救出来了
  4. 图解:SQL SERVER2005的安装
  5. 谷歌紧急修复已遭利用的新 0day
  6. 【安全风险通告】Apache ShardingSphere远程代码执行漏洞安全风险通告
  7. Django 聚合(译)
  8. It's not a Bug, it's a Feature! UVA - 658 (最短路)
  9. 编写 android 测试单元该做的和不该做的事
  10. ArcGIS Engine开发之地图基本操作(3)