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
150
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
78
LLMの活用方法と課題
yagipy
0
280
What is Soft Memory Limit?
yagipy
1
690
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
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
Claude Code Skill入門
mayahoney
0
410
API Platformを活用したPHPによる本格的なWeb API開発 / api-platform-book-intro
ttskch
1
150
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
530
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
710
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
350
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
1.1k
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
1.2k
モダンOBSプラグイン開発
umireon
0
170
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.3k
Java 21/25 Virtual Threads 소개
debop
0
200
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
130
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
770
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
190
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
180
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
96
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
200
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.5k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
220
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
270
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
320
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい