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
HiroyukiYagihashi
September 23, 2020
Programming
0
98
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
What is Soft Memory Limit?
yagipy
1
500
Building markdown editor using Rust’s parser
yagipy
0
2.2k
OSSに貢献した話と社内での取り組みについて
yagipy
1
290
GitHub oneliner command
yagipy
0
73
Other Decks in Programming
See All in Programming
CSC307 Lecture 13
javiergs
PRO
0
150
CSC307 Lecture 06
javiergs
PRO
0
360
GraphQL はいいぞ! ~Laravel で学ぶ GraphQL 入門~
azuki
1
160
Play Billing Library 7.0.0 変更点まとめ@potatotips#88
kako351
0
160
AWSでゲームサーバーを運用! Amazon GameLiftのお話
iriikeita
0
200
Trial
cairolibrary720
1
130
iOSアプリでクリップボードにコピーしたことをユーザーに伝えるちょうど良いフィードバックを探す
ski
0
100
Polarsの成長: v0.14からv1.0までの変遷と今後の展望
zerebom
1
350
CSC307 Lecture 08
javiergs
PRO
0
330
英語
s_shimotori
1
220
Folding Cheat Sheet #7
philipschwarz
PRO
0
150
DynamoDB コスト最適化っぽいことの基本 with Terraform
kuro_kurorrr
2
250
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
63
4.2k
RailsConf 2023
tenderlove
16
720
Infographics Made Easy
chrislema
238
18k
A better future with KSS
kneath
231
17k
Bash Introduction
62gerente
607
210k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
277
13k
Making Projects Easy
brettharned
111
5.7k
A designer walks into a library…
pauljervisheath
201
24k
No one is an island. Learnings from fostering a developers community.
thoeni
17
2.8k
Side Projects
sachag
451
42k
Gamification - CAS2011
davidbonilla
78
4.9k
How to Ace a Technical Interview
jacobian
274
23k
Transcript
簡易的な推薦機能を実装する 八木橋拓之
内容 UserにVideoを勧める機能を作成する
ロジック 1. 自分と似たUserを取得(自分が見た動画を見た User) 2. 1で取得したUserが見たVideoのidと視聴回数を取得(video_id, watch_count) 3. 2で取得したVideoを重み付け(current_userが一回見たVideoは視聴回数を0.1倍する) 4.
2で取得したVideoのidを使ってVideoを取得 5. ページネーション&レスポンスを返却
中間テーブルを作成
1. 自分と似たUserを取得
2. Userが見たVideoを取得
3. 2で取得したVideoを重み付け
4. Videoのidを使ってVideoを取得
完成
まとめとこれから • UserにVideoを勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい