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
これならできる!個人開発のすゝめ
tinykitten
PRO
0
140
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
910
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
420
Python札幌 LT資料
t3tra
7
1.1k
モデル駆動設計をやってみようワークショップ開催報告(Modeling Forum2025) / model driven design workshop report
haru860
0
290
ゆくKotlin くるRust
exoego
1
170
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
540
Cap'n Webについて
yusukebe
0
150
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
530
Navigating Dependency Injection with Metro
l2hyunwoo
1
200
Implementation Patterns
denyspoltorak
0
140
JETLS.jl ─ A New Language Server for Julia
abap34
2
460
Featured
See All Featured
BBQ
matthewcrist
89
9.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
130
A Modern Web Designer's Workflow
chriscoyier
698
190k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
38
Everyday Curiosity
cassininazir
0
110
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
[SF Ruby Conf 2025] Rails X
palkan
0
650
Producing Creativity
orderedlist
PRO
348
40k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい