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 파이썬
392
실무로 통하는
ML
문제 해결
with
파이썬
Py kX
e
e
i
x
j
K
x
ki
ji

1
여기에서
P
(
y
i
=
k
|
X
)
는
i
번째 샘플에 대한 타깃값
y
i
가 클래스
k
가 될 확률입니다.
K
는
전체 클래스 개수입니다.
MLR
의 한 가지 장점은
predict
_
proba
메서드를 사용해 예측한 확
률을 더 신뢰할 수 있다는 것입니다 (즉 보정
calibration
이 잘 되어 있습니다).
LogisticRegression
을 사용할 때 두 가지 기법 중 하나를 선택할 수 있습니다 기본값은
OVR
을 의미하는
ovr
입니다. 매개변숫값을
multinomial
로 지정해
MLR
로 바꿀 수 있습니다.
덧붙임
사이키런
0
.
22
버전에서 최적화 알고리즘을 지정하는
solver
매개변수의 기본값이
liblinear
에서
lbfgs
로 바뀌고,
multi
_
class
매개변수의 기본값은
ovr
에서
auto
로 바뀌었
습니다.
auto
로 지정하면 이진 분류이거나
solver
='
liblinear
'
일 경우에
ovr
이 되고 그 외
에는
multinomial
이 됩니다.
16.3
규제로 분산 줄이기
과제
로지스틱 회귀 모델의 분산을 줄여야 합니다.
해결
규제 강도를 조절하는 하이퍼파라미터
C
를 사용합니다.
# 라이브러리를 임포트합니다.
from sklearn.linear_model import ...
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