관측 대상을 양이 아니라 질로 측정하는 것이 유용할 때가 많습니다. 성별, 색깔, 자동차 브랜
드와 같이 범주에 대한 질적 정보로 표현하곤 합니다. 그러나 범주형 데이터가 모두 같은 것은
아닙니다. 순서가 없는 범주를 명목형
nominal
범주라고 부릅니다. 명목형 범주의 예는 다음과 같
습니다.
●
파랑, 빨강, 초록
●
남자, 여자
●
바나나, 딸기, 사과
반대로 일부 범주는 자연적인 순서를 가집니다. 이를 순서형
ordinal
범주라고 부릅니다. 예를 들
면 다음과 같습니다.
●
낮음, 중간, 높음
●
청년, 노인
●
동의, 중립, 반대
또한 범주형 정보는 데이터에서 종종 벡터나 문자열(예를 들어
Maine
,
Texas
,
Delaware
)의
열로 표현됩니다. 하지만 대부분의 머신러닝 알고리즘에는 수치를 입력해야 하므로 문제가 됩
니다.
범주형 데이터 다루기
5
CHAPTER
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.