Skip to Content
深度学习入门 : 基于Python的理论与实现
book

深度学习入门 : 基于Python的理论与实现

by 斋藤康毅
July 2018
Intermediate to advanced
310 pages
8h 21m
Chinese
Posts & Telecom Press
Content preview from 深度学习入门 : 基于Python的理论与实现
6章 与学习相关的技巧
186
0、方差为1 的数据
,非常简单。通过将这个处理插入到
激活函数的前面(或者后面)
A
,可以减小数据分布的偏向。
接着,
Batch Norm
层会对正规化后的数据进行缩放和平移的变换,用
数学式可以如下表示。
6.8
这里,
γ
β
是参数。一开始
γ =
1
β =
0,然后再通过学习调整到合
适的值。
上面就是
Batch Norm
的算法。这个算法是神经网络上的正向传播。如
果使用第5 章介绍的计算图,
Batch Norm
可以表示为图6
-
17
6-17 Batch Normalization 的计算图(引用自文献[13]
x
(N ,D ) (N ,D )
x
* *
+
ˆ2
d
x
r
(D ,)
r
d
r
β
(D ,)
β
d
β
xε
x
1
out
dout
Batch Norm
的反向传播的推导有些复杂,这里我们不进行介绍。不过
如果使用图6
-
17 的计算图来思考的话,
Batch Norm
的反向传播或许也能比较
轻松地推导出来。
Frederik Kratzert
的博客“
Understanding the backward
pass through Batch Normalization Layer
[13]
里有详细说明,感兴趣的读者
可以参考一下。
6.3.2
 Batch Normalization的评估
现在我们使用
Batch Norm
层进行实验。首先,使用
MNIST
数据集,
A
文献
[
11
]
、文献
[
12
]
等中有讨论(做过实验)应该把
Batch Normalization
插入到激活函数的前面还是 ...
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

ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール

ルールズ・オブ・プログラミング ―より良いコードを書くための21のルール

Chris Zimmerman, 久富木 隆一
プロダクトマネージャーのしごと 第2版 ―1日目から使える実践ガイド

プロダクトマネージャーのしごと 第2版 ―1日目から使える実践ガイド

Matt LeMay, 永瀬 美穂, 吉羽 龍太郎, 原田 騎郎, 高橋 一貴

Publisher Resources

ISBN: 9787115485588