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章 误差反向传播法
122
本节先用计算图解一些简单的问题。从这些简单的问题开始,逐步深入,最
终抵达误差反向传播法。
5.1.1
 用计算图求解
现在,我们尝试用计算图解简单的问题。下面我们要看的几个问题都是
用心算就能解开的简单问题,这里的目的只是通过它们让大家熟悉计算图。
掌握了计算图的使用方法之后,在后面即将看到的复杂计算中它将发挥巨大
威力,所以本节请一定学会计算图的使用方法。
问题1 太郎在超市买了 2 100 日元一个的苹果,消费税是10
%
,请计
算支付金额。
计算图通过节点和箭头表示计算过程。节点用○表示,○中是计算的内
容。将计算的中间结果写在箭头的上方,表示各个节点的计算结果从左向右
传递。用计算图解问题1,求解过程如图 5
-
1 所示。
×
2
×
1.1
100 200 220
5-1 基于计算图求解的问题1 的答案
如图 5
-
1 所示,开始时,苹果的 100日元流到“
×
2”节点,变成 200 日元,
然后被传递给下一个节点。接着,这个200日元流向“
×
1.1”节点,变成220
日元。因此,从这个计算图的结果可知,答案为220 日元。
虽然图5
-
1 把“
×
2”“
×
1.1”等作为一个运算整体用○括起来了,不过
只用○表示乘法运算“
×
”也是可行的。此时,如图5
-
2 所示,可以将“2”和
1.1”分别作为变量“苹果的个数”和“消费税”标在○外面。
5.1  计算图 
123
5-2 基于计算图求解的问题1 的答案:“苹果的个数”和“消费税”作为变量标在○外面
× ×
100 200 220
1.1
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