의 계산 절차에서는 노드로 들어온 입력 신호에 그 노드의 국소적 미분(편미분)을 곱한 후 다
음 노드로 전달합니다. 예를 들어 ‘
**
2
’ 노드에서의 역전파를 보죠. 입력은 이며, 이에 국소
적 미분인 (순전파 시에는 입력이
t
이고 출력이
z
이므로 이 노드에서 (국소적) 미분은 입
니다)를 곱하고 다음 노드로 넘깁니다. 한 가지, [그림
5
-
7
]에서 역전파의 첫 신호인 의 값
은 결국
1
이라서 앞의 수식에서는 언급하지 않았습니다.
그런데 [그림
5
-
7
]에서 주목할 것은 맨 왼쪽 역전파인데요, 이 계산은 연쇄법칙에 따르면
가 성립되어 ‘
x
에 대한
z
의 미분’이 됩니다. 즉, 역전파가 하는 일은 연쇄
법칙의 원리와 같다는 것이죠.
[그림
5
-
7
]에 [식
5
.
3
]의 결과를 대입하면 [그림
5
-
8
]이 되며, 는
2
(
x
+
y
)임을 구할 수
있습니다.
그림
5-8
계산 그래프의 역전파 결과에 따르면 는
2
(
x
+
y
)가 된다.
5.3
역전파
앞 절에서는 계산 그래프의 역전파가 연쇄법칙에 따라 진행되는 모습을 설명했습니다. 이번 절
에서는 ‘+’와 ‘×’ 등의 연산을 예로 들어 역전파의 구조를 설명합니다.
2
z
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.
O’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
I 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
I’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
I'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.