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
0
140
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
72
LLMの活用方法と課題
yagipy
0
270
What is Soft Memory Limit?
yagipy
1
680
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
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
0
830
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
140
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
SourceGeneratorのススメ
htkym
0
180
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
110
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
950
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
390
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
290
AgentCoreとHuman in the Loop
har1101
5
210
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
16
5.4k
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
Package Management Learnings from Homebrew
mikemcquaid
0
170
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
0
760
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
130
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
ラッコキーワード サービス紹介資料
rakko
1
2.2M
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Leo the Paperboy
mayatellez
4
1.4k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
So, you think you're a good person
axbom
PRO
2
1.9k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
310
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
190
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい