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
Amazon Personalizeではじめるレコメンドサービス
Search
tandfy
November 29, 2019
Technology
0
1k
Amazon Personalizeではじめるレコメンドサービス
HIGOBASHI.AWS 第12回 活用編のセッション「Amazon Personalizeではじめるレコメンドサービス」の資料です。
tandfy
November 29, 2019
Tweet
Share
More Decks by tandfy
See All by tandfy
アプリから集まるイベントデータのリアルタイム処理入門
tandfy
0
1.4k
Amazon SageMakerの最新アップデートの紹介
tandfy
1
860
DeepRacerで学ぶ機械学習 1.1
tandfy
0
940
DeepRacerで始める機械学習
tandfy
1
1.6k
DeepRacerでまなぶ強化学習
tandfy
1
1.3k
Amazon SageMakerではじめる物体検出
tandfy
1
990
Other Decks in Technology
See All in Technology
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
370
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
1
230
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
410
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
290
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
6
650
Terraform Stacks入門 #HashiTalks
msato
0
360
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
480
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
飲食店データの分析事例とそれを支えるデータ基盤
kimujun
0
110
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
130
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Designing the Hi-DPI Web
ddemaree
280
34k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Facilitating Awesome Meetings
lara
50
6.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
How GitHub (no longer) Works
holman
310
140k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Adopting Sorbet at Scale
ufuk
73
9.1k
Transcript
)*(0#"4)*"84 ୈճ׆༻ฤ େᖒ༐ే "NB[PO1FSTPOBMJ[FͰ͡ΊΔϨίϝϯυαʔϏε
ࣗݾհ େᖒ༐ే σʔλΞφϦςΟΫεࣄۀຊ෦ΠϯςάϨʔγϣϯ෦ ػցֶशνʔϜΤϯδχΞ!େࡕ
ࠓ͢༰ wύʔιφϥΠζͱ wϨίϝϯυͱ wϨίϝϯυαʔϏεΛΣϒΞϓϦʹΈࠐΉྫ w"NB[PO1FSTPOBMJ[Fͱ w"NB[PO1FSTPOBMJ[FͷྲྀΕ w"NB[PO1FSTPOBMJ[Fͷྉۚ w"NB[PO1FSTPOBMJ[F4BNQMFT
εϥΠυޙͰೖख͢Δ͜ͱ͕ग़དྷ·͢ͷͰ ൃදதͷ༰ΛϝϞ͢Δඞཁ͋Γ·ͤΜɻ ࣸਅࡱӨΛ͢Δ߹ ϑϥογϡɾγϟολʔԻ͕ग़ͳ͍Α͏ʹྀ͍ͩ͘͝͞ Attention
ύʔιφϥΠζͱ
ύʔιφϥΠζͱ ύʔιφϥΠθʔγϣϯʢӳQFSTPOBMJ[BUJPOʣɺύʔιφϥΠζ ʢQFSTPOBMJ[Fʣͱ͍͏ಈࢺͷ໊ࢺܗͰ͋ΓɺʮԿ͔Λݸʑਓ͚ʹΧελϚΠζ͢Δ ͜ͱʯΛҙຯ͢Δɻ By ϑϦʔඦՊࣄయʰΟΩϖσΟΞʢWikipediaʣʱ
Ϩίϝϯυͱ
Ϩίϝϯυͱ ϢʔβͷΈߦಈʹ߹ΘͤͨΞΠςϜΛհ͢Δ͜ͱ
ϢʔβϕʔεϨίϝϯυ
ΞΠςϜϕʔεϨίϝϯυ
Ϩίϝϯυͱ ϢʔβͷΈߦಈʹ߹ΘͤͨΞΠςϜΛհ͢Δ w͓͢͢Ί͢Δ͜ͱͰϢʔβʹΞΠςϜͷൃݟΛଅ͢ wϦιʔεͷ༗ޮ׆༻ wϢʔβମݧͷ࠷దԽ ͳͲɹɹɹ
ϨίϝϯυαʔϏεΛ ΣϒΞϓϦʹΈࠐΉྫ
Ϩίϝϯυ"1*ͷೖग़ྗྫ {"userId": "13"} ϨίϝϯυAPI { "recommendedItems": [ “102", "209",
"12", “3” ] }
ϨίϝϯυαʔϏεΛΣϒΞϓϦʹΈࠐΉྫ API Gateway Lambda
"NB[PO1FSTPOBMJ[FΛ͏߹ͷྫ ϦΞϧλΠϜϨίϝϯσʔγϣϯ API Gateway Lambda Personalize
"NB[PO1FSTPOBMJ[FΛ͏߹ͷྫ όονϨίϝϯσʔγϣϯ API Gateway Lambda Lambda DynamoDB S3 Personalize
"NB[PO1FSTPOBMJ[Fͱ
"NB[PO1FSTPOBMJ[Fͱ ϑϧϚωʔδυͳϨίϝϯυαʔϏε wσʔλͷੵ͔ΒϞσϧͷֶशɺϨίϝϯυ"1*·ͰରԠ wϦΞϧλΠϜͱόονͰͷϨίϝϯυʹରԠ w"NB[PODPNͰഓΘΕ͖ٕͯͨज़Λ༻Ͱ͖Δ wػցֶशͷࣝෆཁ
"NB[PO1FSTPOBMJ[Fͱ https://aws.amazon.com/personalize/
"NB[PO1FSTPOBMJ[Fͷ༻ޠ wσʔληοτάϧʔϓιϦϡʔγϣϯ࡞ʹ༻͢ΔσʔληοτͷΈ ߹Θͤɻ6TFS *UFN 6TFSJUFNJOUFSBDUJPOͷछྨͷσʔληοτͰߏ wϨγϐͲͷΑ͏ʹσʔληοτΛॲཧ͠ɺͲΜͳΞϧΰϦζϜΛ͏͔ͷఆٛ wιϦϡʔγϣϯϨίϝϯυϞσϧɻσʔληοτ͔ΒϨγϐΛͱʹ࡞ wΩϟϯϖʔϯιϦϡʔγϣϯͷϗεςΟϯάڥɻϨίϝϯυ"1*
ରԠ͍ͯ͠ΔϨίϝϯυ Ϩγϐ ͷछྨ w64&3@1&340/"-*;"5*0/ࢦఆͨ͠Ϣʔβͷ͓͢͢ΊΞΠςϜ Λ্ҐOݸٻΊΔ w1&340/"-*;&%@3"/,*/(ࢦఆͨ͠Ϣʔβͷ͓͢͢Ί߹͍ ʹԠͨ͡ॱ൪ʹࢦఆͨ͠ΞΠςϜҰཡΛͳΒΔ w3&-"5&%@*5&.4ࢦఆͨ͠ΞΠςϜʹྨࣅ͢ΔΞΠςϜΛ্ҐOݸٻΊ Δ
"NB[PO1FSTPOBMJ[FͷྲྀΕ
جຊతͳྲྀΕ
σʔληοτάϧʔϓͷ࡞
σʔληοτάϧʔϓͷ࡞ σʔληοτ
σʔλಡΈࠐΈ
Πϕϯτͷੵ
Πϕϯτͷੵ https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html
ιϦϡʔγϣϯ࡞
ιϦϡʔγϣϯόʔδϣϯ࡞ 'JOJTI͘͠$SFBUFTPMVUJPOWFSTJPOΛΫϦοΫ͢Δͱ ιϦϡʔγϣϯόʔδϣϯ͕֬ೝͳ͠Ͱ࡞͞ΕΔͷͰҙ ιϦϡʔγϣϯ࡞ޙ ιϦϡʔγϣϯը໘
Ωϟϯϖʔϯ࡞
ϦΞϧλΠϜϨίϝϯσʔγϣϯ https://docs.aws.amazon.com/personalize/latest/dg/getting-recommendations.html Ϛωδϝϯτίϯιʔϧ AWS Python SDK
όονϨίϝϯσʔγϣϯ
"NB[PO1FSTPOBMJ[Fͷྉۚ
ྉۚ σʔλͷऔΓࠐΈͱτϨʔχϯά wσʔλͷऔΓࠐΈ64%(# wτϨʔχϯά64%τϨʔχϯά࣌ؒ ྫ w݄ʹ߹ܭ(#ͷσʔλΛಡΈࠐΈ 64% wʹճιϦϡʔγϣϯόʔδϣϯΛ࡞ɻ̍ճͷτϨʔχϯά࣌ؒฏۉ࣌ؒɻ
ϲ݄ɻ 64%
ྉۚ ϦΞϧλΠϜϨίϝϯσʔγϣϯ ϲ݄͋ͨΓͷ514࣌ؒ͋ͨΓͷྉۚ w࠷ॳͷສ514࣌ؒ·Ͱ64% w࣍ͷສ514࣌ؒ·Ͱ64% wສ514࣌ؒҎ߱64% ྫ w ࣌ؒ
Ͱ֤࣌ؒ 514࣌ؒ ফඅ 64% ※ TPS: 1ඵ͋ͨΓͷτϥϯβΫγϣϯ
ྉۚ όονϨίϝϯσʔγϣϯ ϲ݄͋ͨΓͷϨίϝϯσʔγϣϯઍ݅͋ͨΓͷྉۚ w࠷ॳͷઍສ݅64% w࣍ͷԯઍສ݅64% wԯ݅Ҏ߱64% ྫ wϲ݄
ؒʹສϢʔβͷϨίϝϯσʔγϣϯΛ࡞ 64% ※ ϢʔβϕʔεͰ͋Εॲཧ͞ΕͨϢʔβɺΞΠςϜϕʔεͰ͋Εॲཧ͞ΕͨΞΠςϜʹΑΔྉۚ
Amazon Personalizeʹ͍ͭͯͬͱΓ͍ͨ
"NB[PO1FSTPOBMJ[F4BNQMFT
"NB[PO1FSTPOBMJ[F4BNQMFT https://github.com/aws-samples/amazon-personalize-samples/tree/master/diagnose
"NB[PO1FSTPOBMJ[F4BNQMFT https://github.com/aws-samples/amazon-personalize-samples/tree/master/diagnose
"NB[PO1FSTPOBMJ[F4BNQMFT https://github.com/aws-samples/amazon-personalize-samples/tree/master/diagnose
"NB[PO1FSTPOBMJ[F4BNQMFT https://github.com/aws-samples/amazon-personalize-samples/tree/master/diagnose
·ͱΊ
·ͱΊ "NB[PO1FSTPOBMJ[FϑϧϚωʔδυͳϨίϝϯυ αʔϏε wػցֶशͷࣝෆཁͰɺBNB[PODPNͰഓΘΕ͖ٕͯͨज़ ͕͑Δ wػցֶशͷ͕ࣝ͋Δͱνϡʔχϯά͕༰қʹͳΔ wϦΞϧλΠϜ"1*ͱͯ͠ɺόονͰ͑Δ
None