Skip to Content
파이썬 라이브러리를 활용한 머신러닝(번역개정판): 사이킷런 핵심 개발자가 쓴 머신러닝과 데이터 과학 실무서
book

파이썬 라이브러리를 활용한 머신러닝(번역개정판): 사이킷런 핵심 개발자가 쓴 머신러닝과 데이터 과학 실무서

by 박해선, 안드레아스 뮐러, 세라 가이도
April 2019
Beginner to intermediate
480 pages
12h 34m
Korean
Hanbit Media, Inc.
Content preview from 파이썬 라이브러리를 활용한 머신러닝(번역개정판): 사이킷런 핵심 개발자가 쓴 머신러닝과 데이터 과학 실무서
2
지도 학습
83
완전히 제외되는 특성이 생긴다는 뜻입니다. 어떻게 보면 특성 선택
feature
selection
이 자동으로 이
뤄진다고 볼 수 있습니다. 일부 계수를
0
으로 만들면 모델을 이해하기 쉬워지고 이 모델의 가
장 중요한 특성이 무엇인지 드러내줍니다.
확장된 보스턴 주택가격 데이터셋에 라소를 적용해보겠습니다.
In [37]:
from sklearn.linear_model import Lasso
lasso = Lasso().t(X_train, y_train)
print("훈련 세트 점수: {:.2f}".format(lasso.score(X_train, y_train)))
print("테스트 세트 점수: {:.2f}".format(lasso.score(X_test, y_test)))
print("사용한 특성의 개수:", np.sum(lasso.coef_ != 0))
Out [37]:
훈련 세트 점수: 0.29
테스트 세트 점수: 0.21
사용한 특성의 수: 4
결과에서 볼 수 있듯이
Lasso
는 훈련 세트와 테스트 세트 모두에서 결과가 좋지 않습니다. 이
는 과소적합이며
104
개의 특성 중
4
개만 사용한 것을 볼 수 있습니다.
Ridge
와 마찬가지로
Lasso
도 계수를 얼마나 강하게
0
으로 보낼지를 조절하는
alpha
매개변수를 지원합니다. 앞에
서는 기본값인 ...
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

데이터 과학을 위한 통계: 데이터 분석에서 머신러닝까지 50가지 핵심 개념

데이터 과학을 위한 통계: 데이터 분석에서 머신러닝까지 50가지 핵심 개념

이준용, 피터 브루스, 앤드루 브루스

Publisher Resources

ISBN: 9791162241646