Skip to Content
실무로 통하는 ML 문제 해결 with 파이썬
book

실무로 통하는 ML 문제 해결 with 파이썬

by 카일 갤러틴, 크리스 알본, 박해선
April 2024
Beginner to intermediate
528 pages
12h 41m
Korean
Hanbit Media, Inc.
Content preview from 실무로 통하는 ML 문제 해결 with 파이썬
10
장
특성 선택을 사용한 차원 축소
263
import numpy as np
np.var(features, axis=0)
array([0.16, 0.16, 0.24])
이진 특성에
var
함수를 사용하는 것은 이진 특성일 때 베르누이 확률 변수의 분산과 같기 때
문입니다. 분산 공식을 사용해 간단히 유도해볼 수 있습니다. 먼저 분산 공식을 다음과 같이 풀
어 쓸 수 있습니다.
Varx
n
x
n
xx
n
iii
i
n
i
n
i
n






11
2
2
22
111

0
,
1
로 이루어진 이진 특성일 경우
x
i
2
은
x
i
와 같으므로
1
n
을 곱하면 첫 번째 항은 평균과 같
아집니다. 두 번째 항도 마찬가지로
1
n
을 곱하면 평균의 제곱으로 표현할 수 있습니다. 결국
다음과 같이 정리됩니다.
 




1
2
1
21
2
11
22 2
n
x
n
x
ii
i
n
i
n

이진 특성의 평균
μ
는 클래스
1
의 샘플 비율과 같습니다. 따라서
var
함수로 이진 특성의 분산
을 계산하면 베르누이 확률 변수의 분산
p
(
1
-
p
)와 같습니다.
threshold
매개변수의 기본값은
0
으로 모든 특성을 선택합니다.
10.3
상관관계가 큰 특성 다루기
과제
특성 행렬에서 일부 특성의 상관관계가 크다고 의심됩니다.
해결
상관관계 행렬
correlation
matrix
을 사용하여 상관관계가 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

실무로 통하는 인과추론 with 파이썬

실무로 통하는 인과추론 with 파이썬

마테우스 파쿠레
잘되는 머신러닝 팀엔 이유가 있다

잘되는 머신러닝 팀엔 이유가 있다

데이비드 탄, 에이다 양, 데이비드 콜스

Publisher Resources

ISBN: 9791169212373