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
140
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
70
LLMの活用方法と課題
yagipy
0
260
What is Soft Memory Limit?
yagipy
1
670
Building markdown editor using Rust’s parser
yagipy
0
2.5k
OSSに貢献した話と社内での取り組みについて
yagipy
1
470
GitHub oneliner command
yagipy
0
110
Other Decks in Programming
See All in Programming
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
900
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
160
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
660
ゆくKotlin くるRust
exoego
1
160
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
460
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
410
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
490
AIコーディングエージェント(Manus)
kondai24
0
230
Python札幌 LT資料
t3tra
7
1.1k
新卒エンジニアのプルリクエスト with AI駆動
fukunaga2025
0
240
ローカルLLMを⽤いてコード補完を⾏う VSCode拡張機能を作ってみた
nearme_tech
PRO
0
190
これならできる!個人開発のすゝめ
tinykitten
PRO
0
130
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
320
Unsuck your backbone
ammeep
671
58k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.8k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
120
Making Projects Easy
brettharned
120
6.5k
Rails Girls Zürich Keynote
gr2m
95
14k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
200
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
286
14k
Are puppies a ranking factor?
jonoalderson
0
2.5k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい