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
790
RubyでChainerつくってます!!
hatappi
2
1.3k
TDDな個人開発
hatappi
0
270
できるだけ楽して楽しくRails開発しよう
hatappi
2
300
EKSにRailsをのせた
hatappi
1
1.1k
RubyとApache Arrow
hatappi
0
2.2k
Red Chainerを なぜ作って今後どうするのか
hatappi
2
2.2k
Fargateで夢は見られるのか
hatappi
1
2k
個人サービスをFargateに移行したよ
hatappi
1
630
Other Decks in Technology
See All in Technology
【NGK2025S】動物園(PINTO_model_zoo)に遊びに行こう
kazuhitotakahashi
0
240
ABWGのRe:Cap!
hm5ug
1
120
Docker Desktop で Docker を始めよう
zembutsu
PRO
0
180
完全自律型AIエージェントとAgentic Workflow〜ワークフロー構築という現実解
pharma_x_tech
0
350
デジタルアイデンティティ人材育成推進ワーキンググループ 翻訳サブワーキンググループ 活動報告 / 20250114-OIDF-J-EduWG-TranslationSWG
oidfj
0
540
AWS re:Invent 2024 recap in 20min / JAWSUG 千葉 2025.1.14
shimy
1
100
今年一年で頑張ること / What I will do my best this year
pauli
1
220
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
1
16k
FODにおけるホーム画面編成のレコメンド
watarukudo
PRO
2
280
Formal Development of Operating Systems in Rust
riru
1
420
GoogleのAIエージェント論 Authors: Julia Wiesinger, Patrick Marlow and Vladimir Vuskovic
customercloud
PRO
0
160
商品レコメンドでのexplicit negative feedbackの活用
alpicola
2
370
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Agile that works and the tools we love
rasmusluckow
328
21k
Embracing the Ebb and Flow
colly
84
4.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
960
Rails Girls Zürich Keynote
gr2m
94
13k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Fireside Chat
paigeccino
34
3.1k
Faster Mobile Websites
deanohume
305
30k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
4 Signs Your Business is Dying
shpigford
182
22k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
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͕࣮༻తͳͷͱҰาલʹਐΜͩ