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 파이썬
326
실무로 통하는
ML
문제 해결
with
파이썬
설명
이 장의 레시피에서는 예제 코드 실행 속도를 빠르게 하려고 후보 모델의 개수를 작게
유지했습니다. 실전에서는 수천, 수만 개의 모델을 훈련하는 경우가 많습니다. 결국 최선의 모
델을 찾으려면 많은 시간이 걸립니다.
이 탐색 과정의 속도를 높이기 위해 사이킷런은 여러 모델을 동시에 훈련할 수 있습니다. 기술
적으로 너무 자세히 들어가진 않겠지만 사이킷런은 컴퓨터에 있는 코어 개수만큼 동시에 모델
을 훈련할 수 있습니다. 최근 노트북은 보통 네 개의 코어를 가집니다. 따라서 (여러분이 노트
북을 사용중이라고 가정하면 ) 네 개의 모델을 동시에 훈련할 수 있습니다. 이는 모델 선택 과
정의 처리 속도를 크게 높여줍니다.
n
_
jobs
매개변수에 병렬로 훈련할 모델의 개수를 정의할
수 있습니다.
해결에서 사이킷런이 모든 코어를 사용하도록
n
_
jobs
를
-
1
로 설정했습니다.
n
_
jobs
의 기본값
은
1
로 하나의 코어만 사용합니다. 해결과 동일한
GridSearchCV
객체를
n
_
jobs
=
1
로 실행하
면 최선의 모델을 찾는 데 매우 오랜 시간이 걸리는 것을 볼 수 있습니다 (정확한 시간은 사용
하는 컴퓨터에 따라 다릅니다).
# 하나의 코어만 사용하는 그리드 서치 객체를 만듭니다.
clf = GridSearchCV
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