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

后验概率:
简化共识:
边栏推荐
猜你喜欢

Markdown basic grammar

设置单击右键可以选择用VS Code打开文件

Configuration clic droit pour choisir d'ouvrir le fichier avec vs Code

阿里云有奖体验:如何使用 PolarDB-X

密码技术---分组密码的模式

Application of containerization technology in embedded field

Go basic anonymous variable
![[analysis of STL source code] imitation function (to be supplemented)](/img/40/a02a04a24f385a31e0484d1071ecec.jpg)
[analysis of STL source code] imitation function (to be supplemented)

【Redis笔记】压缩列表(ziplist)

2022年最新最全软件测试面试题大全
随机推荐
Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions
Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
第三方支付功能测试点【杭州多测师_王sir】【杭州多测师】
BBR 遭遇 CUBIC
Makefile configuration of Hisilicon calling interface
The concepts of terminal voltage, phase voltage and line voltage in FOC vector control and BLDC control are still unclear
PotPlayer设置最小化的快捷键
Arduino - character judgment function
Pandora IOT development board learning (HAL Library) - Experiment 4 serial port communication experiment (learning notes)
What if win11 can't turn off the sticky key? The sticky key is cancelled but it doesn't work. How to solve it
Warning: implicitly declaring library function 'printf' with type 'int (const char *,...)‘
Ping domain name error unknown host, NSLOOKUP / system d-resolve can be resolved normally, how to Ping the public network address?
数字图像处理实验目录
Doorplate making C language
门牌制作 C语言
Explain promise usage in detail
Win11麦克风测试在哪里?Win11测试麦克风的方法
[Yangcheng cup 2020] easyphp
Submit code process
采用VNC Viewer方式遠程連接樹莓派