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
強いチームと開発生産性
onk
PRO
34
11k
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
ハイパーパラメータチューニングって何をしているの
toridori_dev
0
140
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
120
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
5
600
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
170
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
180
Lexical Analysis
shigashiyama
1
150
Terraform Stacks入門 #HashiTalks
msato
0
350
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
73
9.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
For a Future-Friendly Web
brad_frost
175
9.4k
Statistics for Hackers
jakevdp
796
220k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
It's Worth the Effort
3n
183
27k
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͕࣮༻తͳͷͱҰาલʹਐΜͩ