Skip to Content
밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초
book

밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초

by Joel Grus, Hangyeol Kim, Seongju Ha, Eunjung Park
May 2022
Beginner to intermediate
448 pages
13h 7m
Korean
Insight
Content preview from 밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초
Data Science
396
󻱴󽴔󽴔󺻄󺹻󺦏󻝳
assert (set(map
_
reduce(entries, mapper, reducer)) ==
{((0, 1), -3), ((0, 0), 32)})
이런 방법은 작은 행렬에서는 크게 효과적이지 않지만, 수백만 개의 행과 수백
만 개의 열이 주어졌을 때는 꽤 효과적이다.
25.6
여담: Combiner
예리한 독자라면
mapper
들이 꽤 많은 정보를 담고 있다는 것을 발견했을 것이
다. 예를 들어 단어를 셀 때는
(word,
1)
을 전달해서 값을 모두 더하기보다 차라
(word,
None)
을 전달해서 단순히 리스트의 길이만 구할 수도 있었다.
하지만 그렇게 하지 않은 이유가 있다. 분산적인 환경에서는 컴퓨터와 컴퓨터
사이에서 전달되어야 하는 데이터의 양을 줄이기 위해
combiner
를 사용할 수
있기 때문이다. 예를 들어 한
mapper
컴퓨터가 ‘
data
’라는 단어를
500
번 보았을
때, 그 컴퓨터한테
500
개의
("data",
1)
을 하나의
("data",
500)
으로 합친 후 리
듀스 작업을 하는 컴퓨터에 전달하게 하는 것이 훨씬 효율적일 것이다. 이렇게
하는 것이 컴퓨터 간 데이터 전송량을 줄여 주기 때문에 전체적인 속도 또한 훨
씬 빠르다.
Reducer
를 앞에서와 같이 작성한 덕에 코드를 수정하지 않고도 ...
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: 9788966262571