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판)
973
부록 D
특수한 데이터 구조
D.2
래그드 텐서
래그드 텐서는 크기가 다른 배열의 리스트를 표현하는 특별한 종류의 텐서입니다. 더 일반적으
로 말하면 하나 이상의
래그드 차원
ragged
dimension
을 가진 텐서입니다. 래그드 차원은 길이가 달
라지는 차원입니다. 래그드 텐서
r
에서 두 번째 차원이 래그드 차원입니다. 모든 래그드 텐서
에서 첫 번째 차원은 일반적인 차원 (
균일 차원
uniform
dimension
이라고도 부릅니다 )입니다.
래그드 텐서
r
의 모든 원소는 일반 텐서입니다. 래그드 텐서의 두 번째 원소를 확인해보죠.
>>> r[1]
<tf.Tensor: [...], numpy=array([ 67, 111, 102, 102, 101, 101], dtype=int32)>
tf
.
ragged
패키지에 래그드 텐서를 만들고 조작할 수 있는 여러 함수가 있습니다.
tf
.
ragged
.
constant
()
함수를 사용해 두 번째 래그드 텐서를 만들고 첫 번째 래그드 텐서에
0
째 축으로 연결해보죠.
>>> r2 = tf.ragged.constant([[65, 66], [], [67]])
>>> tf.concat([r, r2], axis=0)
<tf.RaggedTensor [[67, 97, 102, 233], [67, 111, 102, 102, 101, ...
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