zoukankan
html css js c++ java
熵、交叉熵、相对熵(KL 散度)意义及其关系
熵:
H
(
p
)
=
−
∑
x
p
(
x
)
log
p
(
x
)
交叉熵:
H
(
p
,
q
)
=
−
∑
x
p
(
x
)
log
q
(
x
)
相对熵:
K
L
(
p
∥
q
)
=
−
∑
x
p
(
x
)
log
q
(
x
)
p
(
x
)
相对熵(relative entropy)也叫 KL 散度(
KL divergence
);
用来度量两分布之间的
不相似性
(dissimilarity);
通过交叉熵的定义,连接三者:
H
(
p
,
q
)
=
=
=
−
∑
x
p
(
x
)
log
q
(
x
)
−
∑
x
p
(
x
)
log
p
(
x
)
−
∑
x
p
(
x
)
log
q
(
x
)
p
(
x
)
H
(
p
)
+
K
L
(
p
∥
q
)
1. 简森不等式与 KL散度
K
L
(
p
∥
q
)
=
−
∫
p
(
x
)
ln
q
(
x
)
p
(
x
)
d
x
因为
−
ln
x
是凸函数,所以满足,凸函数的简森不等式的性质:
f
(
E
)
≤
E
(
f
)
这里我们令
f
(
⋅
)
=
−
ln
x
,则其是关于
x
的凸函数,因此:
E
(
f
(
)
)
≥
f
(
E
)
⇓
−
∫
p
(
x
)
ln
q
(
x
)
p
(
x
)
d
x
≥
−
ln
∫
q
(
x
)
d
x
=
0
也即 KL 散度恒大于等于 0;
查看全文
相关阅读:
Java之static作用的深度总结
关于UiAutomator无法识别的元素
pom.xml详解
maven的依赖范围scope
maven-surefire-plugin插件
remote origin already exists解决办法
resin启动报错:guava-15.0.jar!/META-INF/beans.xml:5: <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"> is an unexpected top-level tag. 异常
Mysql存储过程
ical4j 实现ICS文件的生成和解析
设计模式之观察者模式
原文地址:https://www.cnblogs.com/mtcnn/p/9422588.html
最新文章
mysql [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist (转载)
自动化运维工具Ansible详细部署 (转载)
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var mysql 启动不了(转载)
色值代码大全(转载)
MySQL提示:The server quit without updating PID file问题的解决办法(转载)
mysql安装配置
VM CentOS 问题汇总
ping过程详细解读
VM CentOS7 网络配置问题汇总
Socket编程
热门文章
Socket编程
常用算法1
Linux 多线程
编程规范及代码风格
Linux多线程
GDB调试命令
java线程(上)Thread和Runnable的区别
TestNG入门——注解之Before/After
LoggerFactory.getLogger用法
Java中的File.separator用法
Copyright © 2011-2022 走看看