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
パーソナライズを追求するお菓子の製造需要予測を自動化させた話
Search
Kazufumi Suzuki
November 01, 2018
Programming
0
180
パーソナライズを追求するお菓子の製造需要予測を自動化させた話
株式会社スナックミーで行ったaws sagemakerを用いた需要予測システムの開発、導入のお話。
Kazufumi Suzuki
November 01, 2018
Tweet
Share
More Decks by Kazufumi Suzuki
See All by Kazufumi Suzuki
AWS re:Inventに参加してよかった2つのこと
kz23szk
1
650
Other Decks in Programming
See All in Programming
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
110
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
7
1.8k
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
130
Jakarta EE meets AI
ivargrimstad
0
850
Outline View in SwiftUI
1024jp
1
350
rails new flags - `rails new` のフラグから Rails を構成するコンポーネントの変遷をザックリ眺める
snaka
0
1.8k
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
260
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
130
Vapor Revolution
kazupon
2
880
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
740
cmp.Or に感動した
otakakot
3
280
Featured
See All Featured
Become a Pro
speakerdeck
PRO
25
5k
Why Our Code Smells
bkeepers
PRO
334
57k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
GitHub's CSS Performance
jonrohan
1030
460k
Writing Fast Ruby
sferik
627
61k
Making Projects Easy
brettharned
115
5.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Six Lessons from altMBA
skipperchong
27
3.5k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
140
Automating Front-end Workflow
addyosmani
1366
200k
Transcript
ύʔιφϥΠζΛٻ͢Δ͓՛ࢠͷ धཁ༧ଌΛࣗಈԽͤͨ͞ גࣜձࣾεφοΫϛʔ Dev Day T okyo2018 11.01 Co-Founder &
CTO ࡾ ൏ਓ Data Scientist ླ Ұ࢙
ࣗݾհ ࡾ ൏ਓ גࣜձࣾεφοΫϛʔ (snaq.me) Co-Founder & CTO ͖ͳAWS Lambda
/ ECR
εφοΫϛʔ (snaq.me)ͱ ? ͓՛ࢠ(εφοΫ)ͷఆظߪೖαʔϏε 150छྨҎ্ͷ͓՛ࢠ͔Β8छྨຖճ͓ಧ͚ ஈ 1,728ԁ (੫ࠐ) / ճ
2िʹ1 or 4िʹ1ͷ͓ಧ͚Մೳ
εφοΫϛʔ (snaq.me)ͱ ? εφοΫϛʔΦϦδφϧͰ͞Εͨ φνϡϥϧϑΟφϯγΣ ߳ݝ࢈ͷ্࣭ͳখഴͱశࡊΛ༻͠ ম্͖͛ ೕԽࡎਓޱ߳ྉͳͲΛ༻͍ͯ͠ͳ͍ ͨΊɺ༏͍͠͞ͱɺඒຯ͠͞ͷ༨ӆ͕ ͍ͷ͕ಛ
ίίΞϑΟφϯγΣ
εφοΫϛʔ (snaq.me)ͱ ? ࠭ෆ༻ͰύΠφοϓϧ͚ͩͷϦΞϧ υϥΠϑϧʔπ Ұޱ৯Δͱɺࠓ·Ͱ৯ͨυϥΠϑϧʔ πͱҧ͏ຯΘ͍/৯ײͳͲ υϥΠϑϧʔπͳͷʹɺδϡʔγʔײʂ ੜͷϑϧʔπ͕͞ΒʹࢫຯΛ͚ͭͯਐԽ ͨ͠ײ͡
ϓϨϛΞϜυϥΠύΠϯ
εφοΫϛʔ (snaq.me)ͱ ? ϦΫΤετ/ ධՁΛߦ͏͜ͱͰύʔιφϥ Πζ͕Մೳ 1ਓ1ਓ͓ಧ͚͢Δ͕͓՛ࢠ͕ҟͳΔ
͔Βൃૹ·ͰͷྲྀΕ ࢦࣔॻ ࡞ ࡏݿొ ΞαΠϯ * ΞαΠϯ : ͓٬༷ಧ͚ΔεφοΫΛબͿ͜ͱ
ϐοΩϯά ൃૹ
͔Βൃૹ·ͰͷྲྀΕ ࢦࣔॻ ࡞ ࡏݿొ ΞαΠϯ * ΞαΠϯ : ͓٬༷ಧ͚ΔεφοΫΛબͿ͜ͱ
ϐοΩϯά ൃૹ γεςϜԽΛਐΊ͍ͯΔՕॴ
ΞαΠϯͷߏਤ
͔Βൃૹ·ͰͷྲྀΕ before ࢦࣔॻ ࡞ ࡏݿొ ΞαΠϯ * ΞαΠϯ :
͓٬༷ಧ͚ΔεφοΫΛબͿ͜ͱ ϐοΩϯά ൃૹ
ΞαΠϯͷΈ by Well Architecture of the year ͔͜͜Βࢿྉ֬ೝͰ͖·͢
ࠓճ ࢦࣔॻ
͔Βൃૹ·ͰͷྲྀΕ before ࢦࣔॻ ࡞ ࡏݿొ ΞαΠϯ * ΞαΠϯ :
͓٬༷ಧ͚ΔεφοΫΛબͿ͜ͱ ϐοΩϯά ൃૹ
࣌ͷ՝ ࢦࣔॻͷ࡞ʹຖि1ʙ2͔͔Δ ܭը͕όϥόϥ ૹͨ͠εφοΫͷຬͷఆ͕͍͠ ࠷খɺ࠷େՄೳ͕όϥόϥ ͳͲ
SageMakerͰधཁ༧ଌ͠Α͏
SageMakerͰ࣮ݱ͍ͤͨ͜͞ͱ खܰʹར༻͍ͨ͠ ίετ࠷খݶ & ࣗಈԽ͍ͤͨ͞ SageMakerͰػցֶशͷج൫Λ࡞Γ͍ͨ ͳͲ
धཁ༧ଌߏਤ
धཁ༧ଌߏਤ
धཁ༧ଌ෦ͷߟ͑ํ Ϣʔβʔ༧ଌ ૹ͓՛ࢠͷຬ
धཁ༧ଌߏਤ point - ᶃ
धཁ༧ଌߏਤ point - ᶃ ɾStepFunctionsΛ༻͍Δ͜ͱͰ ඞཁͷͱ͖ʹSagemakerΛىಈ ༧ଌ͕ऴΘͬͨΒɺendpointΛ আ͢Δ͜ͱ͕Մೳ ɾΤϥʔ࣌ͷ࠶τϥΠ༰қʹ ઃఆՄೳ
धཁ༧ଌߏਤ point - ᶄ
धཁ༧ଌߏਤ point - ᶄ ɾCloudWatch EventsΛ༻͍Δ͜ͱͰɺ࠶ֶशΛఆظతʹߦ͏͜ͱ͕ Մೳ
धཁ༧ଌߏਤ point - ᶅ
धཁ༧ଌߏਤ point - ᶅ ɾS3ͷόʔδϣχϯάΛ༻͍͜ͱͰɺສ͕Ұಈ͔ͳ͍Ϟσϧ͕࠷৽൛ ͰҰͭલͷόʔδϣϯͰϦΧόϦʔ͕Մೳ
͜ͷߏਤΛ։ൃͯ͠ ͨ͠ / ҙ
ࣗݾհ ླ Ұ࢙(@kz23szk) גࣜձࣾεφοΫϛʔ (snaq.me) Data Scientist ͖ͳAWS SageMaker
sagemakerͱ ػցֶश༻ϑϧϚωʔδυαʔϏε ϊʔτϒοΫ্Ͱͷ࡞ۀ͕Ͱ͖Δ ̍ϝιουͰσϓϩΠྃ త͝ͱͷνϡʔτϦΞϧ͕๛ ελʔτΞοϓػցֶशΛ͜Ε͔Β ࢝ΊΔاۀʹ͓͢͢Ίʂ
धཁ༧ଌ ൃલʹϢʔβΛਪఆ ਓखͰ༧ͯ͠ൃ ܽաࡏݿͷϦεΫɺਓత ίετΛݮ͍ͨ͠
՝ͱ ʲ՝̍ʳΤϯυϙΠϯτΛৗ࣌ىಈ͢Δͱίετ͕͔͞Ή →༧ଌͷʹLambdaͰΤϯυϙΠϯτͷىಈɺ༧ଌɺআ ʲ՝̎ʳόʔδϣϯΞοϓͰಈ͔ͳ͘ͳΔ →Step FunctionsͰ࠷৽̎ϞσϧͰτϥΠ ʲ՝̏ʳۙͷσʔλؚΊͯ࠶ֶश͍ͨ͠ →࠶ֶश༻lambdaΛ༻ҙ (CloudWatch eventsͰ݄࣮࣌ߦʣ
ʲ՝̍ʳΤϯυϙΠϯτΛৗ࣌ىಈ͢Δͱίετ͕͔͞Ή
̍ɹlambdaͰΤϯυϙΠϯτىಈͱআ boto3ʢSDKʣΛͬͯ ΤϯυϙΠϯτΛࢦఆ͠ ىಈɺআ
̍ɹlambdaͰ༧ଌ ΤϯυϙΠϯτͱσʔλΛ ࢦఆ࣮ͯ͠ߦ͢Δ͚ͩʂ ɾ༧ଌ͝ͱʹΤϯυϙΠϯτͷىಈɺ༧ଌɺআΛߦ͏͜ͱͰ ίετΛ݄υϧʹ͑Δ
ʲ՝̎ʳόʔδϣϯΞοϓͰಈ͔ͳ͘ͳΔ
StepFunctions jsonܗࣜͰαʔϏε࣮ߦΛ εςοϓͰ੍ޚͰ͖Δɻ
̎ StepFunctions ɾهड़͢Δͱϑϩʔ͕ՄࢹԽ͞ΕΔɻ ɾlambdaίʔυ͕୯ػೳʹͳΔɻ ɾذॲཧͰόʔδϣϯΞοϓ࣌ͷোΛ͙ɻ
ʲ՝̏ʳ࠶ֶशΛࣗಈԽ͍ͨ͠ ɾCloudWatch EventsΛ༻͍Δ͜ͱͰɺ࠶ֶशΛఆظతʹߦ͏
̏ɹ࠶ֶशΛࣗಈԽ Cloudwatch eventͰΫʔϩϯܗࣜͰ εέδϡʔϧ࣮ߦ LambdaଆͰલճ࣮ߦ ͨ͠δϣϒΛ࠶࣮ߦ
Sagemaker͜͏ͳͬͨΒخ͍͠ ɾલॲཧ༻ͷΤϯυϙΠϯτ࡞ػೳ͕ཉ͍͠ →ϊʔτϒοΫ্ͷίʔυΛlambdaʹ͖ͬͯͯରԠத
ɹ·ͱΊ ࡞ۀ࣌ؒͷݮ ʢ3࣌ؒ/िʣ ࣌ؒɺि࣍ͷ༧ଌͰίετΛ͑ͯӡ༻ sagemakerͷ࣮ߦɺ࠶ֶशͷࣗಈԽʹޭ ͪΐͬͱͨ͠༧ଌΛεϞʔϧελʔτͰ࢝ΊΒΕΔʂ
ࠓޙ͍ͨ͜͠ͱ σΟεΧόϦʔཁૉͷڧԽ Ϣʔβʔݸʑͷػցֶश ৽ൃ۷δϟϯϧͷఏҊ ਓؾෆਓؾεφοΫͷࣗಈબผ
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ Let’s enjoy guilt free snacks !
We’re hiring! ɾFront / Backend ɾData Scientist ɾSRE etc