当前位置:网站首页>最大似然估计,散度,交叉熵
最大似然估计,散度,交叉熵
2022-07-03 05:45:00 【code bean】
如果这个信息,可以将之前非常不确定的事情,确定了,说明这个信息的信息量很大!

这张图是解释,数学家如何定义信息量的过程:

也就是说,阿根廷夺冠的信息量 = 阿根廷进决赛的信息量+阿根廷赢了决赛的信息量,但是x本身是概率,所以这里的1/8 是 x1*x2 的结果。及:
![]()
这种特性是log特有的。 然后底数大于1的时候,log单调递增,所以加上负号让其单独递减。
到此信息量的定义完成了。
接下看信息熵的定义:

求信息熵的过程就是求期望的过程:信息量乘以事件发生的概率,然后求和。

信息熵,描述的是“消息”的不确定性程度或者说是混乱程度。而这里的“消息”是可以看成一个概率模型的。而求概率模型的信息熵,就是求概率模型的期望啊!
如果想对比两个模型的分布差异,就需要一个概念叫做相对熵(KL散度)


这里有个证明,交叉熵一定大于熵:
所以如果要两个模型最接近,那就是求交叉熵的最小值。那深度学习干的事情就是让神经网络这个模型逼近人脑模型。所以神经网络和人脑模型的交叉熵,就可以作为损失函数!(交叉熵越小,两个模型越相近)
那如下函数,其实是,一个二分类的交叉熵的展开:

这里Y是人的判定,只有两种可能,1或者0,而yhead,是神经网络的输出值,是个概率。他们之间形成的交叉熵构成了二分类的损失函数。

参考:
边栏推荐
- [Shangshui Shuo series together] day 10
- Export the altaro event log to a text file
- DEX net 2.0 for crawl detection
- Win10 install pytullet and test
- Obtenir et surveiller les journaux du serveur distant
- [untitled]
- 为什么网站打开速度慢?
- Progressive multi grasp detection using grasp path for rgbd images
- @Import annotation: four ways to import configuration classes & source code analysis
- PHP notes are super detailed!!!
猜你喜欢

2022.DAY592

Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
![[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system

Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception

@Import annotation: four ways to import configuration classes & source code analysis

Export the altaro event log to a text file

为什么网站打开速度慢?

配置xml文件的dtd

Notepad++ wrap by specified character

Method of finding prime number
随机推荐
redis 无法远程连接问题。
CAD插件的安裝和自動加載dll、arx
NG Textarea-auto-resize
ES 2022 正式发布!有哪些新特性?
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]
Calculation method of AUC
一起上水碩系列】Day 9
If function of MySQL
Map的扩容机制
Source insight automatic installation and licensing
Final review (Day6)
Download the corresponding version of chromedriver
MySQL startup error: several solutions to the server quit without updating PID file
大二困局(复盘)
Final review Day8
Altaro o365 total backup subscription plan
Installation du plug - in CAD et chargement automatique DLL, Arx
[teacher Zhao Yuqiang] use the catalog database of Oracle
Qt读写Excel--QXlsx插入图表5
期末复习DAY8