当前位置:网站首页>【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步总结:

后验概率:
简化共识:
边栏推荐
- All things work together, and I will review oceanbase's practice in government and enterprise industry
- Realize the linkage between bottomnavigationview and navigation
- How does win11 turn on visual control? Win11 method of turning on visual control
- Solution to boost library link error
- What experience is there only one test in the company? Listen to what they say
- vim区间删行注释
- Deep analysis of data storage in memory - C language
- SQL进阶语法
- Cryptographic technology -- key and ssl/tls
- Alibaba cloud award winning experience: how to use polardb-x
猜你喜欢

設置單擊右鍵可以選擇用VS Code打開文件

Implementation of VGA protocol based on FPGA

Win11启用粘滞键关闭不了怎么办?粘滞键取消了但不管用怎么解决

Catalogue of digital image processing experiments

Explain promise usage in detail

Hisilicon VI access video process

Li Kou brush questions (2022-6-28)

Go basic data type

What experience is there only one test in the company? Listen to what they say

C# MVC创建一个视图摆脱布局的影响
随机推荐
Arduino - 字符判断函数
YOLOX加强特征提取网络Panet分析
Li Kou brush questions (2022-6-28)
golang入门:for...range修改切片中元素的值的另类方法
Redis 过期策略+conf 记录
潘多拉 IOT 开发板学习(HAL 库)—— 实验3 按键输入实验(学习笔记)
CDN acceleration requires the domain name to be filed first
可知论与熟能生巧
Go basic constant definition and use
MySQL queries nearby data And sort by distance
ServletContext learning diary 1
C MVC creates a view to get rid of the influence of layout
Print out mode of go
LINQ usage collection in C #
海思 VI接入视频流程
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
設置單擊右鍵可以選擇用VS Code打開文件
Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code
Connexion à distance de la tarte aux framboises en mode visionneur VNC
阿里云有奖体验:如何使用 PolarDB-X