Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rubyではじめる野球データ分析(なおPython) #tqrk11
Search
Shinichi Nakagawa
PRO
July 29, 2017
Science
0
1.9k
Rubyではじめる野球データ分析(なおPython) #tqrk11
https://tokyurubykaigi.github.io/tokyu11/
登壇資料
#Ruby #Daru #Python #Jupyter #Pandas
Shinichi Nakagawa
PRO
July 29, 2017
Tweet
Share
More Decks by Shinichi Nakagawa
See All by Shinichi Nakagawa
実践Dash - 手を抜きながら本気で作るデータApplicationの基本と応用 / Dash for Python and Baseball
shinyorke
PRO
2
1.4k
Terraform, GitHub Actions, Cloud Buildでデータ基盤をProvisioningする / Data Platform provisioning for Google Cloud and Terraform
shinyorke
PRO
2
2.9k
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
PRO
9
2.9k
自らを強いエンジニアにするための3つの習慣 / I need to be myself, I can't be no one else
shinyorke
PRO
77
72k
阪神タイガース優勝のひみつ - Pythonでシュッと調べた件 / SABRmetrics for Python
shinyorke
PRO
1
1.3k
Pythonとクラウドと野球の推し活. / Baseball Data Platform for Python and Google Cloud
shinyorke
PRO
2
2.7k
月額コーヒー3.34杯分のコストでオオタニサンの活躍を見守るデータ基盤のはなし / Pyhack Con
shinyorke
PRO
2
470
俺のDXを実現するためのサーバレスなデータ基盤開発と運用 / Serverless Data Platform and Baseball
shinyorke
PRO
5
11k
機械学習エンジニアが目指すキャリアパスとその実話 / My Journey to Become a ML Engineer
shinyorke
PRO
9
16k
Other Decks in Science
See All in Science
(論文読み)贈り物の交換による地位の競争と社会構造の変化 - 文化人類学への統計物理学的アプローチ -
__ymgc__
1
130
はじめてのバックドア基準:あるいは、重回帰分析の偏回帰係数を因果効果の推定値として解釈してよいのか問題
takehikoihayashi
2
920
(Forkwell Library #48)『詳解 インシデントレスポンス』で学び倒すブルーチーム技術
scientia
2
1.4k
ベイズ最適化をゼロから
brainpadpr
2
900
[第62回 CV勉強会@関東] Long-CLIP: Unlocking the Long-Text Capability of CLIP / kantoCV 62th ECCV 2024
lychee1223
1
760
Mechanistic Interpretability の紹介
sohtakahashi
0
410
Iniciativas independentes de divulgação científica: o caso do Movimento #CiteMulheresNegras
taisso
0
390
WeMeet Group - 採用資料
wemeet
0
3.7k
機械学習による確率推定とカリブレーション/probabilistic-calibration-on-classification-model
ktgrstsh
2
280
創薬における機械学習技術について
kanojikajino
13
4.7k
大規模言語モデルの開発
chokkan
PRO
84
35k
How were Quaternion discovered
kinakomoti321
2
1.1k
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
The Pragmatic Product Professional
lauravandoore
32
6.3k
For a Future-Friendly Web
brad_frost
175
9.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
RailsConf 2023
tenderlove
29
940
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Making the Leap to Tech Lead
cromwellryan
133
9k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Agile that works and the tools we love
rasmusluckow
328
21k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
Transcript
RubyͰ͡ΊΔ ٿσʔλੳ Shinichi Nakagawa(Retty.Inc/ٿͷਓ) TokyuRubyձٞ11 2017/7/29 #tqrk11 ʙPythonΛఴ͑ͯʙ
ਖ਼ = ٿϢχϑΥʔϜʂ ※ࣸਅ͖ͰγΣΞ͓ئ͍͠·͢ʂ
Who am I ?(͓લ୭Α) • Pythonք۾ͷʮٿͷਓʯͰ͢ • Shinichi Nakagawa(@shinyorke) •
Retty.Inc Engineering Manager ݉,ڕྉཧ୲ • Baseball Scientist/ٿσʔλੳऀ • #Python #SABRmetrics #ٿ౷ܭֶ #Agile #Scrum
ʲCMʳRetty #ͱ • Recommend + Happy = Retty • ࣗʹͽͬͨΓͳ͓ళʹग़ձ͏
໊࣮ܕޱίϛαʔϏε • ͓͔͛͞·Ͱ3000ສϢʔβʔ/݄ಥഁ ͋Γ͕ͱ͏͍͟͝·͢m(_ _)m • ϓϩάϥϛϯάݴޠ • PHP(Web) • Java/Kotlin/Scala(API/Backend) • Python(Web/Backend/Data Science) • Ruby,͑ʔʔͬͱ…͋ͬ(͠
ຊͷΠΠΰϋϯ
https://retty.me/area/PRE13/ARE13/SUB1302/100001296432/
ຊͷʮΠΠΰϋϯʯ • RettyࣾһΦεεϝʮࠇໟڇηοτʯ • ʮࠇໟڇʹ͓͔͠ʯຑे൪ຊళ • ʮڇϝϯνΧπʯʮβϒτϯหʯ • ͱ૬ੑൈ܈ຊञʮࠇڇʯ߹Θͤͯʂ
(৯ͨ͠ํ)ਗ਼͖ҰථΛʂ m(_ _)m
ຊͷʮ͓͠ͳ͕͖ʯ • զࢥ͏ʮRubyͱPythonʯ • PyDataͬΆ͘RubyΛ͞ΘΔ • ʲσϞʳJupyterͰRuby VS Python ಉ͡ٿσʔλੳΛͯ͠Έͨ
• ·ͱΊ
ਲͬͬͯΔͷͰ Ή͔͍ͣ͠ϋφγ ͠ΐΓ·͢(͜ͳΈ)
զࢥ͏ʮRubyͱPythonʯ • Ruby • ͏͐ͬͿͷݴޠ • Ruby On Rails͕ͭΑ͍(͜ͳΈ) •
Python • ʮPyDataʯͱ͍͏ݴ༿͕͋Δ͘Β͍,σʔλͷݴޠ • Jupyter notebook,pandasͱ͔ϥΠϒϥϦ͕ἧ͍ਿ
PyDataͬΆ͍͜ͱΛ RubyͰͬͯΈΔ͜ͱ Ͱ͖Δͷ͔ͳ?(͗Μ)
PyDataͬΆ͘RubyΛ͞ΘΔ • Jupyter notebookͰRubyΛಈ͔͢ • pandasmatplotlibʹΘΔϞϊΛ RubyͰ୳ͯͬͯ͠ΈΔ ˞ڥ࡞Γɾํ๏ޙϒϩάͰʂ
ຊͷٿσʔλੳ • ϝονϟڧ͍ౡͱ,ࠓ͋ͬ(͠)ͳϋϜ, ଧઢͷҖྗͷҧ͍Λײతʹੳ&ՄࢹԽ • ੳσʔλ(MySQL)ʹΫΤϦΛୟ͍ͯαϚͬͯάϥϑΛඳ͘ • ࢦඪͱͯ͠ʮwRAA(ଧܸߩݙ)ʯΛ༻ ཧϝνϟΫνϟΉ͔͍ͣ͠ͷͰ͜͜Ͱলུ •
ͳ͓,ੳͱࢦඪܭࢉPythonΛ༷ͬͨm(_ _)m
݁Ռͪ͜Β(αϯϓϧίʔυ) • wRAAੳ(Ruby) https://gist.github.com/Shinichi-Nakagawa/ 0c41baeee95a725c0523a58452a3981e • wRAAੳ(Python) https://gist.github.com/Shinichi-Nakagawa/ 75e32da5f3b0aca6b13904c0dc7ec481 •
εΩʔϚͷҙຯͳͲͳΜͱͳ͍ͯͩ͘͘͠͞w
·ͱΊ • ͦΒʢRubyͰPythonͱ΄΅ಉ͜͡ͱ͕Ͱ͖ͯʣ ͦ͏ʢౡؙ͕ͯ͘͢͝ϋϜͱϨΞʔυҎ֎ΞϨʹʣ Αɹʢܾ·͍ͬͯΔ͡Όͳ͍͔ʣ • ຊͷੳఔͳΒRubyͰશવOK(ٿʹݶΒͣ) • ͱ͍͑Jupyter notebook༏लͳͷͰ͓֮͑ͯ͘ͱ˕
• ؾʹͳͬͨํͥͻҰॹʹJupyterͰRubyಈ͔͠·͠ΐ͏ʂ (ͦͷͰϋϯζΦϯ͍͍ͯ͠Α) • ͰσʔλੳͬͺΓPythonͰʂ(Җѹײ)
ήʔϜηοτʂʂʂ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠&Ruby࠷ߴʂ Shinichi Nakagawa(Twitter/Facebook/hatena:@shinyorke)