Skip to Content
入門 PySpark ―PythonとJupyterで活用するSpark 2エコシステム
book

入門 PySpark ―PythonとJupyterで活用するSpark 2エコシステム

by Tomasz Drabas, Denny Lee, Sky株式会社 玉川 竜司
November 2017
Intermediate to advanced
328 pages
6h 51m
Japanese
O'Reilly Japan, Inc.
Content preview from 入門 PySpark ―PythonとJupyterで活用するSpark 2エコシステム
7.9
 
PageRank
による空港ランキングの計算
143
7.9
 
PageRank
による空港ランキングの計算
GraphFramesにはすぐに利用できるアルゴリズムがいくつかあります。PageRankは、Google の検
索エンジンによって有名になったアルゴリズムで、Larry Pageが生み出しました。Wikipediaから引用
します。
PageRank
では、ページへのリンクの数と質を計測することによってサイトの重要性を大まかに
推定する。その基盤となる前提は、重要な
Web
サイトは他の
Web
サイトからリンクされること
が多くなるだろうというものである。
この話は Webページに関するものですが、この考え方はそのままいかなるグラフ構造に対しても適
用 で き 、そ の 構 造 が Web ページから作られたものであっても、駐輪場や空港から作られたものであって
も当てはめることができます。そして GraphFramesで の イ ン タ ー フ ェ イ ス は 、メ ソ ッ ド を 呼 ぶ だ け の シ
ンプルなものです。
GraphFrames.PageRank
を呼べば PageRank の結果が新しい列としてvertices
DataFrameに追加されて返されるので、それを以降の分析に使えばいいだけです。
このデータセットには、さまざまな空港を経由するフライトや経由便が数多く記録されているので、
PageRank アルゴリズムを使ってSparkにイテレーティブにグラフを追跡させ、それぞれの
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

入門 モダンLinux ―オンプレミスからクラウドまで、幅広い知識を会得する

入門 モダンLinux ―オンプレミスからクラウドまで、幅広い知識を会得する

Michael Hausenblas, 武内 覚, 大岩 尚宏
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也
入門 ソーシャルデータ 第2版 ―ソーシャルウェブのデータマイニング

入門 ソーシャルデータ 第2版 ―ソーシャルウェブのデータマイニング

Matthew A. Russell, 佐藤 敏紀, 瀬戸口 光宏, 原川 浩一, 長尾 高弘

Publisher Resources

ISBN: 9784873118185Other