Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
簡易的な推薦機能を実装する
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
HiroyukiYagihashi
September 23, 2020
Programming
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Transcript
10 slides
簡易的な推薦機能を実装する 八木橋拓之
内容 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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
120
LLMの活用方法と課題
yagipy
0
400
What is Soft Memory Limit?
yagipy
1
740
Building markdown editor using Rust’s parser
yagipy
0
2.6k
GitHub oneliner command
yagipy
0
130
Other Decks in Programming
See All in Programming
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
370
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
2
190
SODA - FACT BOOK(JP)
sodainc
1
40k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
720
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
120
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
180
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
210
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
340
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
30 Presentation Tips
portentint
PRO
1
470
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
For a Future-Friendly Web
brad_frost
184
11k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
WCS-LA-2024
lcolladotor
0
1k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
610
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
エンジニアに許された特別な時間の終わり
watany
109
250k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k