Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Big Data Baseball with Python - Ichiro Suzuki hacks! #kwsk01

1.810 visualizaciones

Publicado el

川崎Ruby会議01(2016/8/20)LT登壇資料

Publicado en: Datos y análisis
  • Sé el primero en comentar

Big Data Baseball with Python - Ichiro Suzuki hacks! #kwsk01

  1. 1. Ichiro Suzuki - The journey to 3,000 hits Big Data Baseball With Python( Ruby 01 2016/8/20) Shinichi Nakagawa@shinyorke
  2. 2. Starting Member • Who am I ? • Hack ( ) • MLB Python Hack 
 Ichiro Suzuki - The journey to 3,000 hits • &
  3. 3. Who am I? • Shinichi Nakagawa(@shinyorke) • Pythonista/Agile & Scrum & Kansan coach/Baseball Analyst • visasQ( ) Python Engineer • /Oakland Athletics/RADIOHEAD
 ※ (21) & Thom Yorke • Python . • Hack .
  4. 4. Hack? • PyConJP 2015 Python Hack • ( ) Python OSS • ” ” 
 Web ( • 
 • Python & 
 ( Ruby )
  5. 5. Hack! Python PyCon JP 2015 http://www.slideshare.net/shinyorke/hackpython-pyconjp
  6. 6. Hack! Python PyCon JP 2015 http://www.slideshare.net/shinyorke/hackpython-pyconjp
  7. 7. Hack! Python PyCon JP 2015 http://www.slideshare.net/shinyorke/hackpython-pyconjp
  8. 8. Hack!→Big Data Baseball • etc… • • ( ) 
 ( , etc…) • … •
  9. 9. MLB at BAT MLB • MLB • PC Apple TV • MLB.TV •
  10. 10. Ichiro Suzuki records 3000th MLB Hits!!! 3,000 
 (8/20) 3,007 ( )
  11. 11. Ichiro Suzuki - The journey to 3,000 hits
 ( Ichiro Suzuki hack) • 8/7 ( 3,000 )
 
 Ichiro . • & . • 3,000 !?
  12. 12. • Python pitchpx 2015-2016
 & Get • & Ichiro Suzuki • Jupyter + matplotlib 
 

  13. 13. 2015-2016 ※ ( ) $ pip install pitchpx # MLB Dataset library(author: @shinyorke) $ pitchpx -s 20150401 -e 20151005 ./output/ # 2015 Season $ pitchpx -s 20150401 -e 20151005 ./output/ # 2016 Season $ ls -l -rw-r--r-- 1 shinyorke_mbp staff 363988 8 20 14:40 mlbam_atbat_20150401.csv -rw-r--r-- 1 shinyorke_mbp staff 357494 8 6 14:31 mlbam_atbat_20150402.csv ( ) -rw-r--r-- 1 shinyorke_mbp staff 3429 8 17 20:55 mlbam_umpire_20150912.csv -rw-r--r-- 1 shinyorke_mbp staff 3241 8 6 14:31 mlbam_umpire_20160723.csv
  14. 14. Ichiro & • pitchpx CSV At Bat Pitch f/x 
 At Bat: Pitch f/x: • At Bat Pitch f/x • pandas .
 ( )

  15. 15. (At Bat) 30 50MB (Pitch f/x) 200 300MB
  16. 16. Ichiro Suzuki $ # $ ls -lah ichiro_suzuki*.csv -rw-r--r--@ 1 shinyorke staff 140K 8 18 01:42 ichiro_suzuki_2015_atbats.csv -rw-r--r--@ 1 shinyorke staff 687K 8 18 01:42 ichiro_suzuki_2015_pitchfx.csv -rw-r--r-- 1 shinyorke staff 74K 8 14 17:06 ichiro_suzuki_2016_atbats.csv -rw-r--r-- 1 shinyorke staff 402K 8 14 17:14 ichiro_suzuki_2016_pitchfx.csv $ wc ichiro_suzuki*.csv 442 7641 143176 ichiro_suzuki_2015_atbats.csv 1636 10368 703882 ichiro_suzuki_2015_pitchfx.csv 233 4026 75543 ichiro_suzuki_2016_atbats.csv 955 6002 411526 ichiro_suzuki_2016_pitchfx.csv 3266 28037 1334127 total
  17. 17. ?
  18. 18. ( ) ( )
  19. 19. ( ) Jupyter
  20. 20. 2015/2016 …
  21. 21. F 4 (FF) 2015 2016
  22. 22. . (CU) (SL) ??? 2015 2016
  23. 23. : ( ) : : : 20: 21: 22: 23: 2015 2016
  24. 24. : ( ) : : : 20: 21: 22: 23: 2015 2016
  25. 25. • • • ( ) • • ( ) • ( ) • 3,000 • Pandas
  26. 26. PyCon JP 2016 9/22( )12:00 ? Python Hack
  27. 27. &Ichiro !!! Shinichi Nakagawa(Twitter/Facebook/visasQ:@shinyorke)

×