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
130
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
41
LLMの活用方法と課題
yagipy
0
180
What is Soft Memory Limit?
yagipy
1
620
Building markdown editor using Rust’s parser
yagipy
0
2.3k
OSSに貢献した話と社内での取り組みについて
yagipy
1
410
GitHub oneliner command
yagipy
0
96
Other Decks in Programming
See All in Programming
Serving TUIs over SSH with Go
caarlos0
0
590
Beyond_the_Prompt__Evaluating__Testing__and_Securing_LLM_Applications.pdf
meteatamel
0
110
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
160
Contribute to Comunities | React Tokyo Meetup #4 LT
sasagar
0
590
MySQL初心者が311個のカラムにNot NULL制約を追加していってALTER TABLEについて学んだ話
hatsu38
2
100
Optimizing JRuby 10
headius
0
570
Deoptimization: How YJIT Speeds Up Ruby by Slowing Down / RubyKaigi 2025
k0kubun
2
1.9k
ぽちぽち選択するだけでOSSを読めるVSCode拡張機能
ymbigo
8
3.2k
Thank you <💅>, What's the Next?
ahoxa
1
590
Ruby で作る RISC-V CPU エミュレーター / RISC-V CPU emulator made with Ruby
hayaokimura
2
220
Cursorを活用したAIプログラミングについて 入門
rect
0
160
Road to RubyKaigi: Making Tinny Chiptunes with Ruby
makicamel
4
540
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
523
40k
Making Projects Easy
brettharned
116
6.2k
Bash Introduction
62gerente
612
210k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
The Invisible Side of Design
smashingmag
299
50k
Into the Great Unknown - MozCon
thekraken
38
1.7k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Done Done
chrislema
184
16k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
Become a Pro
speakerdeck
PRO
28
5.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい