Skip to Content
핸즈온 비지도 학습
book

핸즈온 비지도 학습

by 강재원, 권재철, 안쿠르 A. 파텔
July 2020
Beginner to intermediate
444 pages
10h 50m
Korean
Hanbit Media, Inc.
Content preview from 핸즈온 비지도 학습
306
3부 텐서플로와 케라스를 사용한 비지도 학습 모델
9.3
비지도 학습 모델
이제 비지도 학습을 사용해 사기 탐지 솔루션을 구축하겠습니다. 구체적으로
40
개 노드의 은
닉층과 드롭아웃
2
%, 선형 활성화 함수를 사용하는 희소
2
-계층 과대완전 오토인코더를 구축
할 겁니다.
이번에는 사기 거래 수를
오버샘플링
oversampling
해 훈련셋을 조정하겠습니다. 오버샘플링은 주어
진 데이터셋의 클래스 분포를 조정하는 데 사용하는 기술입니다. 우리가 훈련시키는 오토인코
더가 정상/비사기 거래와 비정상/사기 거래를 더욱 쉽게 구분할 수 있도록 데이터셋에 사기성
거래를 더 많이 추가하는 겁니다.
이전 작업에서 우리는 훈련셋에 존재하는 사기 거래
90
%를 삭제했습니다. 그 결과 훈련셋에
남은 사기 거래 건수는 단
33
건입니다. 우리는 이 사기 거래
33
건을
100
배 복제한 다음 훈련
셋에 추가할 겁니다. 또한 오버샘플링되지 않은 훈련셋의 복사본을 보관해 나머지 머신러닝 파
이프 라인에서 사용할 겁니다.
테스트셋은 별도로 건드리지 않을 겁니다. 오버샘플링은 훈련셋에만 적용합니다.
oversampl ultiplier = 100
X_train_original = X_train.copy()
y_train_original = y_train.copy()
X_test_original = X_test ...
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: 9791162243190