Skip to Content
개발자를 위한 필수 수학
book

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
253
6
로지스틱 회귀와 분류
더 많은 데이터를 수집하거나 다른 모델을 시도하고, 오차 행렬,
ROC
곡선과
AUC
를 사용할
수 있습니다. 이 모든 것이 잘못된 예측을 추적하고 사전에 오류를 포착하는 데 도움이 됩니다.
또 다른 일반적인 기법은 전체 데이터셋의 클래스 비율이 유지되도록 훈련/테스트 데이터셋을
나누는 것입니다. [예제
6
-
19
]처럼 훈련/테스트 분할을 수행할 때 사이킷런에서 이 작업을 수
행할 수 있습니다.
stratify
매개변수에 클래스의 값이 포함된 열을 전달하면 분할마다 각 클
래스의 비율을 동일하게 유지합니다.
예제
6-19
stratify
매개변수를 사용하여 클래스 균형 맞추기
X, Y = ...
X_train, X_test, Y_train, Y_test = \
train_test_split(X, Y, test_size=.33, stratify=Y)
크기가 작은 클래스의 표본을 합성하는
SMOTE
알고리즘도 있습니다. 하지만 가장 이상적인
방법은 희소한 사건을 찾도록 설계된 이상치 탐지 모델을 사용하는 것입니다. 이러한 모델은
이상치를 찾으며, 비지도 알고리즘이기 때문에 분류 작업은 아닙니다. 이러한 모든 기법은 이
책의 범위를 벗어나지만 주어진 문제에 더 나은 해결책을 제공합니다.
6.12
마치며
로지스틱 회귀는 데이터의 확률을
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

개발자를 위한 머신러닝&딥러닝

개발자를 위한 머신러닝&딥러닝

로런스 모로니

Publisher Resources

ISBN: 9791169212502