합니다. 모델에서 중요한 매개변수의 (일반화 성능을 최대로 높여주는) 값을 찾는 일은 어려
운 작업이지만, 모든 모델과 데이터셋에서 해야 하는 필수적인 일입니다. 많이 하는 작업이므
로
scikit
-
learn
에는 이를 위한 메서드가 준비되어 있습니다. 가장 널리 사용하는 방법은
그리드
서치
grid
search
로서 관심 있는 매개변수들을 대상으로 가능한 모든 조합을 시도해보는 것입니다.
SVC
파이썬 클래스에 구현된
RBF
radial
basis
function
커널
SVM
을 사용해보겠습니다.
2
장에서
본 것처럼 커널의 폭에 해당하는
gamma
와 규제 매개변수
C
가 중요합니다. 매개변수
C
와
gamma
에
0
.
001
,
0
.
01
,
0
.
1
,
1
,
10
,
100
값을 적용해보겠습니다.
C
와
gamma
의 설정값이
각각
6
개씩이니 조합의 수는 총
36
개입니다. 모든 조합을 살펴보기 위해
SVM
매개변수 설정
테이블(그리드)을 다음처럼
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.