Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Google ColabでDL入門#2

masa-ita
October 13, 2018

Google ColabでDL入門#2

Google Colab上でKeras Tutorialsの日本語版を試すハンズオンの2回め。
Python機械学習勉強会in新潟 2018-10-13での発表スライド。

masa-ita

October 13, 2018
Tweet

More Decks by masa-ita

Other Decks in Technology

Transcript

  1. PyML in Niigata • ൘֞ ਖ਼හ • גࣜձࣾBSNΞΠωοτ ٕज़ސ໰ •

    தখاۀ਍அ࢜ • ೔ຊRubyͷձ • ৽ׁΦʔϓϯιʔεڠձ • Pythonॳ৺ऀ WHO AM I ? 2
  2. PyML in Niigata • ʮColaboratory ͸ɺػց ֶशͷڭҭ΍ݚڀͷଅਐ Λ໨తͱͨ͠ Google ݚ

    ڀϓϩδΣΫτͰ͢ʯby Google • Google Driveͱ࿈ಈ • ίϯςφٕज़Λ׆༻ͨ͠ JupyterͷΧελϜ؀ڥ • νʔϜϝϯόʔͰͷڞಉ ฤू͕Մೳ • GPU/TPU΋ແྉͰ࢖͑ Δʂ • ੍ݶ࣌ؒ͸12࣌ؒʁ WHAT IS GOOGLE COLABORATORY? 3
  3. PyML in Niigata • TensorFlow͸Googleͷ OSSʢOpen Source Softwareʣ • Deep

    LearningͷCoreͰ͋ ΔTensorԋࢉΛCPU/GPU Ͱߴ଎࣮ߦ͢ΔͨΊͷϥΠ ϒϥϦ • cf Caffe, MXNet, CNTK etc. • Keras͸François Chollé @Google͕։ൃͨ͠OSS • TensorFlowɺ Theanoɺ CNTKͳͲͷόοΫΤϯυ Λ࢖͍ɺModelΛॻ͖΍͢ ͘͢ΔϥΠϒϥϦ • TensorFlowʹ૊ࠐࡁ • cf Chainer, PyTorch etc. WHAT IS TENSORFLOW/KERAS? 5
  4. 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
  5. 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
  6. 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 ͕Ϛ΢ϯτ͞Ε·͢ɻ