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
Google ColabでDL入門#2
Search
masa-ita
October 13, 2018
Technology
2
260
Google ColabでDL入門#2
Google Colab上でKeras Tutorialsの日本語版を試すハンズオンの2回め。
Python機械学習勉強会in新潟 2018-10-13での発表スライド。
masa-ita
October 13, 2018
Tweet
Share
More Decks by masa-ita
See All by masa-ita
Run Instant NeRF on Docker
itagakim
1
2.1k
3D Clustering and Metric Learning
itagakim
0
270
Cloud TPUの使い方〜BigBirdの日本語学習済みモデルを作る〜
itagakim
0
600
多言語学習済みモデルmT5とは?
itagakim
1
590
AWSのGPUを安く使ってTensorFlowモデルを訓練する方法
itagakim
0
310
最近の自然言語処理モデルの動向
itagakim
1
520
ディープラーニングで芸術はできるか?〜生成系ネットワークの進展〜
itagakim
0
270
AWSとTerraform初心者がやってみたこと
itagakim
1
410
IntroductionToTensorFlow2_0.pdf
itagakim
1
310
Other Decks in Technology
See All in Technology
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
120
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
430
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1k
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
3
630
Zennのパフォーマンスモニタリングでやっていること
ryosukeigarashi
0
150
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
4
230
CDCL による厳密解法を採用した MILP ソルバー
imai448
3
140
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
430
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
500
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
38
7.1k
Facilitating Awesome Meetings
lara
50
6.1k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Why Our Code Smells
bkeepers
PRO
334
57k
BBQ
matthewcrist
85
9.3k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
A Philosophy of Restraint
colly
203
16k
Navigating Team Friction
lara
183
14k
Agile that works and the tools we love
rasmusluckow
327
21k
RailsConf 2023
tenderlove
29
900
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Transcript
Pythonػցֶशษڧձ in ৽ׁ ͰDLೖ#2 Google Colab 1 ൘֞ ਖ਼හ 2018-10-13
PyML in Niigata • ൘֞ ਖ਼හ • גࣜձࣾBSNΞΠωοτ ٕज़ސ •
தখاۀஅ࢜ • ຊRubyͷձ • ৽ׁΦʔϓϯιʔεڠձ • Pythonॳ৺ऀ WHO AM I ? 2
PyML in Niigata • ʮColaboratory ɺػց ֶशͷڭҭݚڀͷଅਐ Λతͱͨ͠ Google ݚ
ڀϓϩδΣΫτͰ͢ʯby Google • Google Driveͱ࿈ಈ • ίϯςφٕज़Λ׆༻ͨ͠ JupyterͷΧελϜڥ • νʔϜϝϯόʔͰͷڞಉ ฤू͕Մೳ • GPU/TPUແྉͰ͑ Δʂ • ੍ݶ࣌ؒ12࣌ؒʁ WHAT IS GOOGLE COLABORATORY? 3
ʮDriveʹίϐʔʯΛΫϦοΫ ͯ͠Driveͱͷ࿈ܞΛ։࢝ PyML in Niigata HOW TO BEGIN https://colab.research.google.com/ 4
PyML in Niigata • TensorFlowGoogleͷ OSSʢOpen Source Softwareʣ • Deep
LearningͷCoreͰ͋ ΔTensorԋࢉΛCPU/GPU Ͱߴ࣮ߦ͢ΔͨΊͷϥΠ ϒϥϦ • cf Caffe, MXNet, CNTK etc. • KerasFrançois Chollé @Google͕։ൃͨ͠OSS • TensorFlowɺ Theanoɺ CNTKͳͲͷόοΫΤϯυ Λ͍ɺModelΛॻ͖͢ ͘͢ΔϥΠϒϥϦ • TensorFlowʹࠐࡁ • cf Chainer, PyTorch etc. WHAT IS TENSORFLOW/KERAS? 5
ΦϦδφϧͷTutorials ɺࠨهͷURLͰެ։ ͞Ε͍ͯ·͢ɻ ͜ͷTutorials TensorFlowͷυΩϡϝ ϯτதͷhttps:// github.com/tensorflow/ docs/tree/master/site/ en/tutorials/keras ʹؚ
·Ε͍ͯ·͢ɻ PyML in Niigata LET’S START KERAS TUTORIALS https://www.tensorflow.org/tutorials/ 6
github.comͰ্هͷ ιʔείʔυʢJupyter NotebookʣΛදࣔ͠· ͢ɻ ࠨਤͷͱ͓Γɺ”Run in Google Colab (Japanese translation)”
ͷϦϯΫΛΫϦοΫ͢ ΔͱɺGoogle ColabͰ ։͘͜ͱ͕ग़དྷ·͢ɻ PyML in Niigata LET’S START KERAS WITH JAPANESE https://github.com/masa-ita/keras-tutorials/ 7
GITHUBλϒΛબ ͠ɺϢʔβʔ໊”masa- ita”Λೖྗͯ͠ݕࡧϘλ ϯΛΫϦοΫ͠·͢ɻ ϦϙδτϦ͔Β”masa- ita/keras-tutorials”ɺϒ ϥϯν”master”Λબ ͠·͢ɻ දࣔ͞Εͨύεͷத͔ Β”basic_text_classific
ation.ipynb”ͷӈͷϘ λϯΛΫϦοΫ͠·͢ɻ PyML in Niigata LET’S START KERAS WITH JAPANESE https://colab.research.google.com/ Λ։͖·͢ɻ 8
͜ͷঢ়ଶͰɺ Notebookͷ࣮ߦग़དྷ ·͕͢ɺग़ྗΛอଘ͢ Δ͜ͱ͕ग़དྷ·ͤΜɻ ग़ྗΛอଘ͢Δʹ ʮϑΝΠϧʯϝχϡʔ ͔ΒʮυϥΠϒʹίϐʔ ΛอଘʯΛબͯ͠ɺ Google Driveʹίϐʔ
Λอଘ͠·͢ɻ PyML in Niigata SAVE THE NOTEBOOK ON GOOGLE DRIVE 9
GPUΛ༻͢ΔʹɺʮϥϯλΠ Ϝʯϝχϡʔ͔ΒʮϥϯλΠϜͷλ ΠϓΛมߋʯΛબ͠ɺʮϋʔυΣ ΞΞΫηϥϨʔλʯΛʮNoneʯ͔ ΒʮGPUʯʹมߋ͠·͢ɻ PyML in Niigata HOW TO
USE GPU 10
Google͕࡞ͨ͠ϊʔτ ϒοΫҎ֎Λ࣮ߦ͢Δࡍ ʹɺࠨਤͷΑ͏ͳηΩϡ ϦςΟܯࠂ͕දࣔ͞ΕΔ ͜ͱ͕͋Γ·͢ɻ ϦηοτΛ࣮ߦ͢Δࡍʹ Լਤͷ֬ೝ͕ඞཁͰ͢ ɻ PyML in
Niigata SECURITY WARNING 11
PyML in Niigata TEXT CLASSIFICATION 12
PyML in Niigata WORD EMBEDDING 13 <START> this film was
just brilliant casting … with us all [1, 14, 22, 16, 43, 530, 973, …, 19, 178, 32] a1 b1 ⋮ p1 a2 b2 ⋮ p2 a3 b3 ⋮ p3 am bm ⋮ pm am bm ⋮ cm Embedding GlobalAveragePooling1D
PyML in Niigata TIPS HOW TO BRING YOUR OWN DATA
https://colab.research.google.com/notebooks/io.ipynb 14 ԼهͷίʔυΛ࣮ߦ͢ΔͱೝূϦϯΫͱೖྗϑΟʔϧυ͕දࣔ͞Ε·͢ɻ ೝূϦϯΫΛΫϦοΫͯ͠ɺGoogle Colab͔ΒͷGoogle DriveͷΞΫη εΛڐՄ͠ɺൃߦ͞ΕͨτʔΫϯΛೖྗϑΟʔϧυʹϖʔετ͠Enter ΩʔΛԡ͢ͱɺGoogle Drive ͕Ϛϯτ͞Ε·͢ɻ
PyML in Niigata NEXT STEP ଞͷϊʔτϒοΫͬͯΈΔ ϊʔτϒοΫΛίϐʔͯ͠ϞσϧΛ͍ͬͯ͡ΈΔ ॻ੶WEB্ͷίʔυΛ࣮ߦͯ͠ΈΔ 15