Chainer 初学者向けハンズオン

Chainer 初学者向けハンズオン

E04f148b1f9614f4dee94e804cd8bf9c?s=128

keisuke umezawa

June 08, 2019
Tweet

Transcript

  1. Chainer ॳֶऀ޲͚ϋϯζΦϯ
 chug (Chainer User Group) wifi: NTTCom-Guest-28F twitterͷϋογϡλά͸ #chug_jp

    Ͱ͓ئ͍͠·͢ɻ AzureΞΧ΢ϯτ࡞੒·ͩͷํ͸։࢝લʹ࡞੒͓ئ͍͠·͢ɻ ࣭໰͸ɺSlack chainer-jp ͷ #chainer-handson-ms Ͱɻ ొ࿥͕·ͩͷํ͸ɺhttps://bit.ly/chainer-jp-slack
  2. ࣗݾ঺հ !2 • കᖒ ܚհ (14ষ୲౰) • ۚ༥Ϛʔέοτ༧ଌϞσϧͷݚڀ։ൃ @AlpacaJapan •

    Chainer Evangelist ˏPreferred Networks • ࠷্ོ࢙ (15ষ୲౰) • ΢ϧγεςϜζגࣜձࣾͰʮઌ୺ٕज़ΛϏδωεʯʹ͢Δݚڀ։ൃΛ਱ߦɻը૾ ॲཧɺARɺਂ૚ֶशɺڧԽֶशΛૢΔɻScrumMaster޲͚ͷ׆ಈ΍arxiv࿦จΛ ಡΉ׆ಈ΋ల։தɻৗʹChainerΛ࢖ͬͯkaggle΍SIGNATEͰٕज़Λຏ͘ɻ • ஑಺߁थ (16ষ୲౰) • גओձࣾACCESSͷCo-CTOɻීஈ͸IoT԰Λ͢Δ๣ΒɺChainerͰ༡ΜͰ·͢ɻ
  3. Agenda 1. Chainer/CuPyͷ঺հ 2. ຊ೔ͷϋϯζΦϯͷ಺༰ !3

  4. Chainer/CuPyͷ঺հ !4

  5. Chainer • Chainerͱ͸ (http://chainer.org/) • Preferred Networks੡Deep LearningϑϨʔϜϫʔΫ !5

  6. Chainer !6 • Googleࣾ੡TensorFlowͳͲͷಉྨ

  7. CuPy !7 Chainerʹ͓͚ΔGPUܭࢉΛશͯ୲౰͢ΔϥΠϒϥϦ͕ಠཱ NumPyޓ׵APIͰ௿ίετʹCPUίʔυΛGPU΁Ҡߦ ಛҟ஋෼ղͳͲͷઢܗ୅਺ΞϧΰϦζϜΛGPU࣮ߦ KMeans, Gaussian Mixture ModelͳͲͷExampleͷॆ࣮ import

    numpy as np x = np.random.rand(10) W = np.random.rand(10, 5) y = np.dot(x, W) import cupy as cp x = cp.random.rand(10) W = cp.random.rand(10, 5) y = cp.dot(x, W) GPU https://github.com/cupy/cupy
  8. ֦େ͢ΔChainerϑΝϛϦʔ !8 Chainer UI Chainer Chemistry ڧԽֶश ը૾ೝࣝ ՄࢹԽ άϥϑߏ଄

    େن໛෼ࢄ Menoh ਪ࿦ಛԽ
  9. ࠷ۙͷͰ͖͝ͱ(1): Chainer Tutorials ͷެ։ • Chainer͚ͩͰͳ͘ɺ਺ֶ΍PythonͷجૅʙػցֶशɾσΟʔϓϥʔ χϯάͷجૅɾίʔσΟϯάɾԠ༻·Ͱ෯޿͘ղઆɻ • શষΛColab্Ͱ࣮ߦՄೳͳJupyterϊʔτϒοΫͱͯ͠഑෍த !9

    https://tutorials.chainer.org/ja/
  10. ࠷ۙͷͰ͖͝ͱ(2): ChainerX ެ։ • ࣗಈඍ෼ՄೳͳNumPy-likeͳ ndarrayΛC++Ͱ࣮૷͢Δ͜ͱ ʹΑΓҎԼΛୡ੒ • ߴ଎Խ •

    ଟ༷ͳσόΠεʹରԠ • pythonҎ֎ͷݴޠͰdeploy Մೳ !10
  11. ຊ೔ͷϋϯζΦϯͷ಺༰ !11

  12. ࠓճͷ಺༰ !12 • ChainerΛ࢖ͬͨσΟʔϓϥʔχϯάೖ໳ίϯςϯπʮChainer νϡ ʔτϦΞϧʯ͕ެ։͞Ε·ͨ͠ɻࠓճ͸ɺͦͷҰ෦ίϯςϯπΛར ༻͠ɺChainerΛ࢖ͬͯσΟʔϓϥʔχϯάΛମݧ͍ͯͨͩ͘͜͠ͱ Λ໨తͱ͍ͯ͠·͢ɻ • 14ষɿChainer

    ͷجૅ • 15ষɿChainer ͷԠ༻ • 16ষɿτϨʔφͱΤΫεςϯγϣϯ • https://notebooks.azure.com/kumezawa/projects/tutorials
  13. GPUΛ࢖ͬͯಈ͔͢ʹ͸ʁ !13 • ຊ೔ͷϋϯζΦϯ͸CPU؀ڥͰߦ͍·͕ͨ͠ɺ࢖༻ྉۚ͑͞ࢧ෷͑ ͹GPUͰಈ͔͢͜ͱ΋ՄೳͰ͢ɻGPUͰಈ͔ͨ͠৔߹͸ҎԼΛࢀর ͍ͩ͘͞ɻ • ChainerRLͱAzure NotebooksΛ͔ͭͬͯɺMinecraftͰਂ૚ڧԽ ֶश

    ϋϯζΦϯ http://bit.ly/2Zfq8tL
  14. chug (Chainer User Group)ͷ঺հ !14

  15. Chainer User Groupͷ঺հ • Slack chainer-jp https://bit.ly/join-chainer-jp-slack • Twitter @chug_jp

    • ׆ಈ಺༰ • MeetupɾϋϯζΦϯͷ։࠵ • Chainerʹؔ͢Δ৘ใɾυΩϡϝϯτͷ֦ॆ • Web νϡʔτϦΞϧͷ࡞੒ • Ұॹʹ׆ಈͰ͖ΔํΛืू͍ͯ͠·͢ʂ
 Slack #chug-jp-management ʹੋඇ !15
  16. Ξϯέʔτ http://bit.ly/chainer-handson-20190608

  17. None