신경심리학 이론에서 한 생물학적 뉴런이 다른 뉴런을 자주 작동시키면 두 뉴런 사이의 연결이 강해진다.
즉, 함께 작동하는 세포들은 연결된다.
마찬가지로 신경망의 계산 모델은 결과를 생성할 때 신경망이 만든 오차를 고려한다. 컴퓨터는
숫자만 이해하기 때문에 노드가 오차를 줄이는 데 기여하면 연결된 엣지의
w
가 증가하고 노드
가 오차를 증가시키는 데 기여하면 연결된 엣지의
w
가 감소한다. 따라서 신경망의 학습 규칙은
오차를 줄이는 연결을 강화하기 위해 해당
w
값을 증가시키고 오차를 증가시키는 연결을 약화
하기 위해 해당
w
값을 감소시킨다.
4.7.2
왜 역전파하는 것이 더 좋을까?
역전파는 신경망을 거꾸로 이동하면서 각 노드에 대한 훈련 함수의 미분 값을 계산한다. 이는
각 노드가 훈련 함수와 손실 함수
Lw
v
Q
V
에 얼마나 기여하는지 측정한다.
여기서 기억해야 할 가장 중요한 공식은 미적분학의 연쇄 법칙이다. 연쇄 법칙은 합성 함수의
도함수를 계산한다. 주로 하나의 변수
w
에만 의존하는 함수를 다루는데, 세 개의 함수가 합성
된 경우
w
에 대한 미분은 다음과 같다.
dw
d
fffw
dw
d
fw
df
d
ffw
df
d
fffw
3 211
1
21
2
3 21
=
QQQQQQQQQ
VVVVVVVVV
G
GG
J
JJ
신경망의 경우 손실 함수에 연쇄 ...
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.