는 것을 눈치챘을 것이다. 분배 함수는 특정 상태의 시스템을 찾을 확률을 계산한다. 분배 함수가 확률을 계
산하는 방식과 로지스틱 함수와 소프트맥스 함수가 확률을 계산하는 방식은 동일하다.
3.5.2
손실 함수
로지스틱 회귀 식을 사용하여 크로스 엔트로피 손실 함수 식을 유도한다.
이제 동일한 논리를 여러 클래스에 대한 것으로 일반화해보자. 특정 데이터 포인트가
i
번째 클
래스에 속하면
y
true
,
i
=
1
, 그렇지 않으면
y
true
,
i
=
0
으로 표기할 것이다. 그러면 특정 데이터 포인
트가 잘못 분류되었을 때 발생하는 비용은 다음과 같다.
cost
logs,y1
logs
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.