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
Ruby脳で実装するCNN
Search
hatappi
March 30, 2018
Technology
1
1.5k
Ruby脳で実装するCNN
#speeekaigi
hatappi
March 30, 2018
Tweet
Share
More Decks by hatappi
See All by hatappi
RubyではじめるGraphQL
hatappi
0
770
RubyでChainerつくってます!!
hatappi
2
1.3k
TDDな個人開発
hatappi
0
260
できるだけ楽して楽しくRails開発しよう
hatappi
2
290
EKSにRailsをのせた
hatappi
1
1.1k
RubyとApache Arrow
hatappi
0
2.1k
Red Chainerを なぜ作って今後どうするのか
hatappi
2
2.2k
Fargateで夢は見られるのか
hatappi
1
2k
個人サービスをFargateに移行したよ
hatappi
1
620
Other Decks in Technology
See All in Technology
Shift-from-React-to-Vue
calm1205
3
1.3k
よくわからんサービスについての問い合わせが来たときの強い味方 Amazon Q について
kazzpapa3
0
220
「視座」の上げ方が成人発達理論にわかりやすくまとまってた / think_ perspective_hidden_dimensions
shuzon
2
3.6k
プロダクト成長に対応するプラットフォーム戦略:Authleteによる共通認証基盤の移行事例 / Building an authentication platform using Authlete and AWS
kakehashi
1
150
APIテスト自動化の勘所
yokawasa
7
4.2k
新卒1年目が挑む!生成AI × マルチエージェントで実現する次世代オンボーディング / operation-ai-onboarding
cyberagentdevelopers
PRO
1
160
GitHub Universe: Evaluating RAG apps in GitHub Actions
pamelafox
0
170
Amazon_CloudWatch_ログ異常検出_導入ガイド
tsujiba
4
1.6k
使えそうで使われないCloudHSM
maikamibayashi
0
170
なんで、私がAWS Heroに!? 〜社外の広い世界に一歩踏み出そう〜
minorun365
PRO
6
1.1k
生成AIの強みと弱みを理解して、生成AIがもたらすパワーをプロダクトの価値へ繋げるために実践したこと / advance-ai-generating
cyberagentdevelopers
PRO
1
180
Aurora_BlueGreenDeploymentsやってみた
tsukasa_ishimaru
1
120
Featured
See All Featured
Faster Mobile Websites
deanohume
304
30k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
790
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
The Cult of Friendly URLs
andyhume
78
6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
7
150
The World Runs on Bad Software
bkeepers
PRO
65
11k
Testing 201, or: Great Expectations
jmmastey
38
7k
Building Adaptive Systems
keathley
38
2.2k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Embracing the Ebb and Flow
colly
84
4.4k
Transcript
RubyͰ࣮͢ΔCNN 4QFFF,BJHJ UZOUΤϯδχΞാத༔࡞
self.intoroduction { name: "Yusaku Hatanaka", twitter: "@hatappi", github: "hatappi", hatena:
"hatappi1225", company: "Speee, Inc." languages: ["Ruby", "Go", "Python"], icon: "ɹ " }
CNNͱ w ΈࠐΈχϡʔϥϧωοτϫʔΫ Convolutional Neural Network w શ݁߹Ͱ3(#ը૾ͷΑ͏ͳ࣍ݩͷը૾Ͱ͋ͬͯ̍࣍ݩͷ σʔλʹ͢ΔͨΊܗঢ়͕ແࢹ͞Εͯ͠·͏͕$//Ͱܗঢ়Λ
ҡ࣋͢Δ͜ͱ͕ग़དྷΔ IUUQZBOOMFDVODPNFYECQVCMJTQEGMFDVOQEG શ݁߹ ΈࠐΈ
*-473$ IUUQJNBHFOFUPSHDIBMMFOHFTUBMLT@*-473$@PWFSWJFXQEG AlexNet ZFNet GooLeNet ResNet SENet
࣮ྫ גࣜձࣾ7"4*-: 3FUUZגࣜձࣾ
ੈͷதͰͲͷΑ͏ʹ ࣮ݱ͞Ε͍ͯΔͷ͔
FUD
ͳͥRubyͰ࣮͢Δ ඞཁ͕͋ΔͷͰ͠ΐ͏͔ʁ
rmatz lRubyΛΩϝΔͱؾ͍͍࣋ͪz
3FE$IBJOFS
3FE$IBJOFSͱʁ w 1ZUIPOͷ$IBJOFSΛ3VCZͰϙʔςΟϯάͨ͠ਂ ֶशϑϨʔϜϫʔΫ w χϡʔϥϧωοτϫʔΫ$//ͳͲͷωοτϫʔ ΫߏஙΛ͢Δ্Ͱඞཁͳ"1*Λఏڙ͢Δ w ߦྻͷอ࣋ɾԋࢉʹ/VNP/"SSBZΛ༻
3FE$IBJOFSͷಛ w 3VCZͰ࣮ݱ͞Ε͍ͯΔ w 3VCZJTU͕3VCZΒ͘͠ਂֶशΛ͢Δ͜ͱ͕ग़དྷ ΔΑ͏ʹͳΔͣ w ./*45$*'"3Λࣝผ͢ΔͷͰͳͦ͘ΕΒΛ ࣮ݱ͢ΔͨΊͷ"1*܈Λఏڙ͍ͯ͠Δ w
044Ͱఏڙ͞Ε͓ͯΓ୭ͰιʔείʔυΛ ݟΔ͜ͱ͕ग़དྷͯҰॹʹ։ൃΛ͢Δ͜ͱ͕ग़དྷΔ SFEEBUBUPPMTSFEDIBJOFS
$*'"3ͷࣝผ
$*'"3 w ܇࿅σʔλສຕɺςετσʔ λສຕ͔ΒͳΔը૾σʔλ ηοτ w ը૾YQYͷ3(#͕ DIBOOFMͰߏ͞ΕΔ IUUQTXXXDTUPSPOUPFEVdLSJ[DJGBSIUNM
ͬͨϞσϧ w ͷILSVRCͰҐͱͳͬͨ7((ϞσϧΛϕʔ εʹ͍ͯ͠·͢ w 7((ΈࠐΈͱϓʔϦϯά͔Βߏ͞ΕΔ γϯϓϧͳߏͷ$// w ύϥϝʔλͷ࠷దԽʹMomentumSGD
ͬͨϞσϧ
ͬͨϞσϧ
࣮ͨ͠"1* • Convolution2D • Batch Normalization • MaxPooling • MomentumSGD
• Dropout • WeightDecay • etc
σϞ
ݱঢ়ͷ՝໘ 3FE$IBJOFS $IBJOFS TPOPUTDVNP
ݱঢ়ͷ՝3VCZΒ͠͞
·ͱΊ w CIFARͷࣝผΛ͢ΔϞσϧΛߏங͢ΔͨΊʹඞཁͳ "1*܈Λ࣮ͨ͠ w RubyͰCNNΛߏங͢Δ͜ͱͰΩϝͯؾ࣋ͪΑ͘ ͳΕͨ w Red Chainer͕࣮༻తͳͷͱҰาલʹਐΜͩ