当前位置:网站首页>【ML】李宏毅三:梯度下降&分类(高斯分布)
【ML】李宏毅三:梯度下降&分类(高斯分布)
2022-07-02 22:14:00 【洋气月】
等高线的法线垂直于切线,:
每次计算
一次归点,然后根据归点梯度下降;再根据其结果算新的归点,再梯度下降。。。。。
在做梯度下降的时候,小心的调learning rate
最好每一个参数都有一个learning rate,推荐使用adagrad
case:利用过去所有微分值的均方根
解释:
只考虑一个参数时:
考虑多个参数时,以上论述就不一定成立了:
只看w1(蓝色):a比b离得远,则微分值越大
只看w2(绿色):c比d离得远,则微分值越大
但结合起来看就不是了:a的微分值明显比c小,但是a距离原点更远,所以跨参数比较的话,上述就不成立了!
所以正确做法是:用一次微分值/二次微分值,来算距离最低点的距离
是个常数,
表示一次微分,
来代替二次微分(为了好算)
随机梯度下降:
用vector来描述一个输入(宝可梦)
极大似然估计:通过结果推算来源的概率
高斯分布 ,假设是个function,每个点都是从高斯分布取样出来的。
每个点离黄色的中心点越近,取样出来的概率就越大
因为每个蓝色点概率独立,所以黄色点sample所有79个蓝色点的概率等于每个想乘
算极大似然值:取平均(因为高斯分布是正态分布)
算出最有可能sample所有蓝点的极大似然之后,开始分类:
水系和普通系分类效果不是很好,正确率只有47%,如果升维呢?
增加属性到7唯
7维效果仍然不理想,减少两个function的参数
共用协方差矩阵后,准确率提高
3步总结:
后验概率:
简化共识:
边栏推荐
- [hardware] origin of standard resistance value
- 阿里云有奖体验:如何使用 PolarDB-X
- How does win11 turn on visual control? Win11 method of turning on visual control
- Call vs2015 with MATLAB to compile vs Project
- The concepts of terminal voltage, phase voltage and line voltage in FOC vector control and BLDC control are still unclear
- [Yangcheng cup 2020] easyphp
- 4 special cases! Schools in area a adopt the re examination score line in area B!
- Looking at Ctrip's toughness and vision from the Q1 financial report in 2022
- [npuctf2020]ezlogin XPath injection
- Application of containerization technology in embedded field
猜你喜欢
The first batch of Tencent cloud completed the first cloud native security maturity assessment in China
[hardware] origin of standard resistance value
为什么RTOS系统要使用MPU?
[analysis of STL source code] imitation function (to be supplemented)
Win11启用粘滞键关闭不了怎么办?粘滞键取消了但不管用怎么解决
Win11自动关机设置在哪?Win11设置自动关机的两种方法
(毒刺)利用Pystinger Socks4上线不出网主机
[redis notes] compressed list (ziplist)
golang入门:for...range修改切片中元素的值的另类方法
Use of recyclerview with viewbinding
随机推荐
2016. maximum difference between incremental elements
阿里云有奖体验:如何使用 PolarDB-X
Talk about memory model and memory order
Where is the win11 microphone test? Win11 method of testing microphone
MarkDown基本语法
Go basic data type
Potplayer set minimized shortcut keys
vim区间删行注释
[analysis of STL source code] imitation function (to be supplemented)
20220527_ Database process_ Statement retention
非路由组件之头部组件和底部组件书写
高数有多难?AI 卷到数学圈,高数考试正确率 81%!
Win11如何开启目视控制?Win11开启目视控制的方法
Loss function~
为什么RTOS系统要使用MPU?
[proteus simulation] 51 MCU +lcd12864 push box game
Explain promise usage in detail
PotPlayer设置最小化的快捷键
Compose 中的 'ViewPager' 详解 | 开发者说·DTalk
基于FPGA的VGA协议实现