데이터셋에 가장 적합한 훈련 함수를 찾는 것이다. 손실 함수는 모델의 훈련 함수를 통해 예측
된 값이 실제 값과 얼마나 차이가 나는지 측정한다. 우리는 이 차이가 작아지길 원하므로 최소
화 문제를 풀어야 하는 것이다.
손실이 가장 작은 조합을 찾을 때까지 가능한 모든
w
값을 시도해보지는 않을 것이다. 시도한
조합 중 가장 작은 손실 값보다 더 나은(작은) 손실 값이 있는지 알 수 없으므로 언제 이러한
시도를 멈춰야 할지 모르기 때문이다. 따라서 손실 함수의 형태에 관한 사전 지식이 있어야 하
며 그 수학적 특성을 활용해야 한다. 이는 눈을 가린 채 스위스 알프스 산맥을 하이킹하는 것과
눈을 뜨고 상세한 지도를 보면서 하이킹하는 것으로 비유할 수 있다(스위스 알프스 산맥은 [그
림
3
-
7
]과 같이 지형이 매우 험난하다.)
그림
3-7
스위스 알프스 산맥. 최적화는 ...
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.