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
150
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
77
LLMの活用方法と課題
yagipy
0
280
What is Soft Memory Limit?
yagipy
1
680
Building markdown editor using Rust’s parser
yagipy
0
2.5k
OSSに貢献した話と社内での取り組みについて
yagipy
1
480
GitHub oneliner command
yagipy
0
110
Other Decks in Programming
See All in Programming
Raku Raku Notion 20260128
hareyakayuruyaka
0
430
朝日新聞のデジタル版を支えるGoバックエンド ー価値ある情報をいち早く確実にお届けするために
junkiishida
1
370
日本だけで解禁されているアプリ起動の方法
ryunakayama
0
370
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
14
7.9k
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
240
CSC307 Lecture 12
javiergs
PRO
0
460
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
180
CSC307 Lecture 14
javiergs
PRO
0
450
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.2k
AHC061解説
shun_pi
0
320
浮動小数の比較について
kishikawakatsumi
0
380
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
1.6k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Chasing Engaging Ingredients in Design
codingconduct
0
130
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
A better future with KSS
kneath
240
18k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Optimizing for Happiness
mojombo
378
71k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
460
Building the Perfect Custom Keyboard
takai
2
710
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
RailsConf 2023
tenderlove
30
1.4k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい