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

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

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

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

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


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

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

参考:
边栏推荐
- Kubernetes resource object introduction and common commands (V) - (configmap)
- 【无标题】
- @Solutions to null pointer error caused by Autowired
- [teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
- 【无标题】
- MySQL startup error: several solutions to the server quit without updating PID file
- Qt读写Excel--QXlsx插入图表5
- redis 无法远程连接问题。
- Final review Day8
- Final review (Day5)
猜你喜欢
![[teacher Zhao Yuqiang] redis's slow query log](/img/a7/2140744ebad9f1dc0a609254cc618e.jpg)
[teacher Zhao Yuqiang] redis's slow query log

PHP笔记超详细!!!
![Together, Shangshui Shuo series] day 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Together, Shangshui Shuo series] day 9

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

"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)

Solve the problem of automatic disconnection of SecureCRT timeout connection

Final review (Day5)
![[teacher Zhao Yuqiang] MySQL flashback](/img/93/75998e28fd309880661ea723dc8de6.jpg)
[teacher Zhao Yuqiang] MySQL flashback

Sophomore dilemma (resumption)

期末复习(Day5)
随机推荐
C 语言文件操作函数大全 (超详细)
Communication - how to be a good listener?
Talk about how to use p6spy for SQL monitoring
Analysis of the example of network subnet division in secondary vocational school
kubernetes资源对象介绍及常用命令(五)-(ConfigMap)
[teacher Zhao Yuqiang] MySQL flashback
Final review (Day5)
牛客网 JS 分隔符
[teacher Zhao Yuqiang] MySQL high availability architecture: MHA
Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services
Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
期末复习(Day2)
今天很多 CTO 都是被幹掉的,因為他沒有成就業務
Redhat7 system root user password cracking
AtCoder Beginner Contest 258(A-D)
ninja: build stopped: subcommand failed.
2022.DAY592
Installing altaro VM backup
"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
2022.7.2 simulation match