분류 성능을 측정하는 가장 간단한 방법은 정확히 예측한 것들의 비율, 즉 정확도가 얼마인지
보는 것이다. 정확도는 아래 수식과 같다.
정확도 =
∑
참 양성 +
∑
참 음성
표본 크기
대부분의 분류 알고리즘에서는 각 데이터에 대해
1
이 될 확률값을 추정하여 할당한다.
5
가장
기본적인 컷오프 기준값은
0
.
5
, 즉
50
%이다. 확률이
0
.
5
보다 크면 분류 결과는
1
, 그렇지 않으
면
0
이 된다. 또 다른 방법은, 실제 데이터에서
1
이 차지하는 비율을 컷오프로 사용하는 방법
이 있다.
5.4.1
혼동행렬
혼동행렬
은 분류 결과를 나타내는 가장 대표적인 행렬이다. 혼동행렬은 응답 유형별로 정확한
예측과 잘못된 예측의 수를 한 번에 보여주는 표다.
R
과 파이썬에서는 여러 가지 패키지를 사
용하여 혼동행렬을 ...
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.