Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
簡易的な推薦機能を実装する
Search
HiroyukiYagihashi
September 23, 2020
Programming
0
130
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
69
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
Cell-Based Architecture
larchanjo
0
140
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
240
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
160
AIコーディングエージェント(NotebookLM)
kondai24
0
220
モデル駆動設計をやってみようワークショップ開催報告(Modeling Forum2025) / model driven design workshop report
haru860
0
280
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
110
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
150
エディターってAIで操作できるんだぜ
kis9a
0
750
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
140
チームをチームにするEM
hitode909
0
360
愛される翻訳の秘訣
kishikawakatsumi
3
340
JETLS.jl ─ A New Language Server for Julia
abap34
2
430
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
32
Art, The Web, and Tiny UX
lynnandtonic
304
21k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
BBQ
matthewcrist
89
9.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
96
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
200
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
48
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
290
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
It's Worth the Effort
3n
187
29k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
250
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい