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

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

by 斋藤康毅
July 2018
Intermediate to advanced
310 pages
8h 21m
Chinese
Posts & Telecom Press
Content preview from 深度学习入门 : 基于Python的理论与实现
5章 误差反向传播法
148
1
X
(2,)
XW
(3,)
W
(2, 3)
dot
(3,)
1
(3,) (3, 2)
(2,)
5-26  矩阵的乘积(“dot”节点)的反向传播可以通过组建使矩阵对应维度的元素个数一
致的乘积运算而推导出来
5.6.2
 批版本的Affine层
前面介绍的
Affi ne
层的输入
X
是以单个数据为对象的。现在我们考虑N
个数据一起进行正向传播的情况,也就是批版本的
Affi ne
层。
先给出批版本的
Affi ne
层的计算图,如图5
-
27 所示。
dot
W
(2, 3)
X
(N, 2)
XW
(N, 3)
Y
(N, 3)
B
(3,)
1
2
3
(N, 3) (N, 3)
(N, 2) (N, 3)
1
2
3
(3, 2)
(N, 3)(2, N)
(2, 3)
(3) (N, 3)
的第一个轴(第0轴)方向上的和
5-27 批版本的Affi ne 层的计算图
5.6  Affine/Softmax层的实现 
149
与刚刚不同的是,现在输入
X
的形状是
(N
, 2
)
。之后就和前面一样,在
计算图上进行单纯的矩阵计算。反向传播时,如果注意矩阵的形状,就可以
和前面一样推导出
加上偏置时,需要特别注意。正向传播时,偏置被加到
X
·
W
的各个
数据上。比如,
N =
2(数据为 2 个)时,偏置会被分别加到这2 个数据(各自
的计算结果
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, 久富木 隆一

Publisher Resources

ISBN: 9787115485588