Skip to Content
机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)
book

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

by Aurélien Géron
October 2020
Intermediate to advanced
693 pages
16h 26m
Chinese
China Machine Press
Content preview from 机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)
242
|
第
9
章
图 9-23:在同一数据上使用不同的先验集中度会导致不同数量的集群
公式 9-2:贝叶斯定理
pz X(| )= = =后验
概率 先验
证据
× pX z pz( | ) ()
pX()
不幸的是,在高斯混合模型(以及许多其他问题)中,分母
p
(
X
) 很难处理,因为它需要
对
z
的所有可能值进行积分(见公式 9-3),这需要考虑所有可能的集群参数和集群分配
的组合。
公式 9-3:证据
p
(
X
) 是难处理的
pX PX zpz z( ) ( | ) ( )d=
∫
这种难处理性是贝叶斯统计中的核心问题之一,有几种解决方法。其中之一是变分推
理,它选择具有变分参数
λ
的分布族
q
(
z
;
λ
),然后优化这些参数以使
q
(
z
) 成为
p
(
z
|
X
) 的
良好近似值。这是通过找到最小化从
q
(
z
) 到
p
(
z
|
X
) 的 KL 散度的
λ
值来实现的,记为
D
KL
(
q
||
p
)。KL 散度方程如公式 9-4 所示,可以将其重写为证据的对数(log
p
(
X
))减去
证据的下界(ELBO)。由于证据的对数不依赖于
q
,它是一个常数项,因此,使 KL 散
度最小化只需要使 ELBO 最大化。
公式 9-4:从
q
(
z
) 到
p
(
z
|
X
) 的 KL 散度
D qp
KL
( || ) log
= −
= −
=
q
q
q
[log ( ) log ( | )]






log ( ) log
qp
q
p
z zX
(| )
q
z
zX
()z
p
p
(| )zX
()X
无监督学习技术
|
243
其中ELBO [log ( , )] [log ( )] ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

算法技术手册(原书第2 版)

算法技术手册(原书第2 版)

George T.Heineman, Gary Pollice, Stanley Selkow
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey

Publisher Resources

ISBN: 9787111665977