Skip to Content
핸즈온 머신러닝(3판)
book

핸즈온 머신러닝(3판)

by 오렐리앙 제롱(Aurélien Géron), 박해선
September 2023
Beginner to intermediate
1044 pages
27h 52m
Korean
Hanbit Media, Inc.
Content preview from 핸즈온 머신러닝(3판)
560
2
신경망과 딥러닝
(동일한 범주를 사용한다고 가정할 때 ) 동시에 한 개 이상의 범주형 특성을 인코딩하면
CategoryEncoding
클래스는 기본적으로
멀티-핫 인코딩
multi
-
hot
encoding
을 수행합니다. 즉, 입
력 특성에 있는 범주에 해당하는 위치마다 출력 텐서의 값이
1
이 됩니다. 예를 들면 다음과 같
습니다.
>>> two_age_categories = np.array([[1, 0], [2, 2], [2, 0]])
>>> onehot_layer(two_age_categories)
<tf.Tensor: shape=(3, 3), dtype=float32, numpy=
array([[1., 1., 0.],
[0., 0., 1.],
[1., 0., 1.]], dtype=float32)>
각 범주가 얼마나 많이 등장하는지 알고 싶다면
CategoryEncoding
층을 만들 때
output
_
mode
="
count
"
를 추가합니다. 이렇게 하면 출력 텐서에 각 범주의 등장 횟수가 포함되므로 이
전 예시에서 두 번째 행의 경우
[
0
.,
0
.,
2
.]
이 될 것입니다.
멀티-핫 인코딩과 카운트 인코딩은 범주를 활성화한 특성이 어떤 것인지 알 수 없기 때문에 정
보에 손실이 있다는 점을 유념하세요. 예를 들어
[
0
,
1
]
[
1
,
0
]
은 모두
[
1
., ...
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: 9791169211475