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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
HiroyukiYagihashi
September 23, 2020
Programming
150
0
Share
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
79
LLMの活用方法と課題
yagipy
0
280
What is Soft Memory Limit?
yagipy
1
700
Building markdown editor using Rust’s parser
yagipy
0
2.5k
GitHub oneliner command
yagipy
0
110
Other Decks in Programming
See All in Programming
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
140
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
250
TiDBのアーキテクチャから学ぶ分散システム入門 〜MySQL互換のNewSQLは何を解決するのか〜 / tidb-architecture-study
dznbk
1
180
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
JOAI2026 1st solution - heron0519 -
heron0519
0
140
tRPCの概要と少しだけパフォーマンス
misoton665
2
210
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
190
アーキテクチャモダナイゼーションとは何か
nwiizo
19
5.3k
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
190
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
270
GitHubCopilotCLIをはじめよう.pdf
htkym
0
190
CDK Deployのための ”反響定位”
watany
4
780
Featured
See All Featured
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
150
Practical Orchestrator
shlominoach
191
11k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
Accessibility Awareness
sabderemane
1
100
Paper Plane
katiecoart
PRO
1
49k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Why Our Code Smells
bkeepers
PRO
340
58k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい