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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
HiroyukiYagihashi
September 23, 2020
Programming
150
0
Share
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
86
LLMの活用方法と課題
yagipy
0
290
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
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
190
Road to RubyKaigi: Play Hard(ware)
makicamel
1
570
Agentic Elixir
whatyouhide
0
450
🦞OpenClaw works with AWS
licux
1
350
Agentic UI in the Frontend: Architectures with Open Standards @JAX 2026 in Mainz
manfredsteyer
PRO
0
110
AWSはOSSをどのように 考えているのか?
akihisaikeda
0
110
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
170
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
200
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.9k
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
200
空間オーディオの活用
objectiveaudio
0
150
Featured
See All Featured
Accessibility Awareness
sabderemane
1
110
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Evolving SEO for Evolving Search Engines
ryanjones
0
190
RailsConf 2023
tenderlove
30
1.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
How to make the Groovebox
asonas
2
2.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
500
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.4k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
280
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
280
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
130
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい