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
740
RubyでChainerつくってます!!
hatappi
2
1.3k
TDDな個人開発
hatappi
0
250
できるだけ楽して楽しくRails開発しよう
hatappi
2
290
EKSにRailsをのせた
hatappi
1
1.1k
RubyとApache Arrow
hatappi
0
2.1k
Red Chainerを なぜ作って今後どうするのか
hatappi
2
2.1k
Fargateで夢は見られるのか
hatappi
1
2k
個人サービスをFargateに移行したよ
hatappi
1
610
Other Decks in Technology
See All in Technology
The XZ Backdoor Story
fr0gger
0
3.6k
どこよりも遅めなWinActor Ver.7.5.0 新機能紹介
tamai_63
0
210
サプライチェーン攻撃に備える
ryunen344
0
280
PdMはどのように全てのスピードを上げられるか ~ 非連続進化のための具体的な取り組み ~
sansantech
PRO
4
1.3k
自作Cコンパイラ 8時間の奮闘
soukouki
0
850
DuckDB雑紹介(1.1対応版)@DuckDB座談会
ktz
6
1.4k
Oracle Autonomous Database:サービス概要のご紹介
oracle4engineer
PRO
1
7.1k
【株式会社ELYZA】|GENIAC成果報告会 自社開発モデルプレゼンテーション
elyza
1
250
なにもしてないのにNew Relicのデータ転送量が増えていたときに確認したこと
tk3fftk
2
230
フルカイテン株式会社 採用資料
fullkaiten
0
32k
「自動テストのプラクティスを効果的に学ぶためのカードゲーム」 ( #sqip2024 )
teyamagu
PRO
2
180
watsonx.ai Dojo 環境準備について
oniak3ibm
PRO
0
300
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
25
3.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
Thoughts on Productivity
jonyablonski
66
4.2k
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
Building Flexible Design Systems
yeseniaperezcruz
325
38k
BBQ
matthewcrist
83
9.2k
Clear Off the Table
cherdarchuk
91
320k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
The Cost Of JavaScript in 2023
addyosmani
42
5.7k
The Cult of Friendly URLs
andyhume
76
6k
How to name files
jennybc
75
98k
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
58k
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͕࣮༻తͳͷͱҰาલʹਐΜͩ