keisuke umezawa
June 08, 2019
3.5k

# Chainer 初学者向けハンズオン

June 08, 2019

## 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Ͱ༡ΜͰ·͢ɻ

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

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

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