우리가 구성한 손실 함수는 데이터 포인트에 대해 예측한 값과 실제 값 사이의 오차를 노름으로 측정하여 인
코딩한다. 노름은 거리 역할을 할 수 있는 수학적 객체다. 다양한 노름이 있지만 그중
L2
노름이 가장 많이
사용된다.
표기법
이 책에서 모든 벡터는 열 벡터로 쓴다. 열 벡터는 문자 위에 화살표를 넣어 표기한다.
벡터
v
v
가
4
개의 원소를 가진다면 벡터
v
v
는
v
v
v
v
1
2
3
4
J
L
K
K
K
K
K
K
K
K
N
P
O
O
O
O
O
O
O
O
를 의미한다. 벡터
v
v
를 전치
transpose
58
하면
vvvvv
t
1234
=
v
Q
V
와 같이 항상 행 벡터가 된다.
스칼라곱
dot
product
59
표기법을 사용할 수도 있다. 두 벡터의 스칼라곱
ab$
v
v
는
ab
t
v
v
와 같다. 먼저
ab
t
v
v
를 행렬의
크기가
1
×
벡터의 길이
인 행렬과
벡터의 길이
×
1
인 행렬의 곱으로 생각하자.
벡터
a
v
와
b
v
가
4
개의 원소를 가지고 있다고 가정하면
ab
t
v
v
를 다음과 같이 전개할 수 있다.
ab
b
b
b
b
abababab
aaaaab
t
ii
1
2
3
4
223344123411
++===+
i1
4
=
v
v
J
L
K
K
K
K
K
K
K
K
K
Q
N
P
O
O
O
O
O
O
O
O
O
V
/
그리고 벡터
a
v
와
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.