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
62
LLMの活用方法と課題
yagipy
0
240
What is Soft Memory Limit?
yagipy
1
650
Building markdown editor using Rust’s parser
yagipy
0
2.4k
OSSに貢献した話と社内での取り組みについて
yagipy
1
450
GitHub oneliner command
yagipy
0
100
Other Decks in Programming
See All in Programming
Catch Up: Go Style Guide Update
andpad
0
250
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
4
16k
AI Agent 時代的開發者生存指南
eddie
4
2.1k
AIと人間の共創開発!OSSで試行錯誤した開発スタイル
mae616
2
810
Vueのバリデーション、結局どれを選べばいい? ― 自作バリデーションの限界と、脱却までの道のり ― / Which Vue Validation Library Should We Really Use? The Limits of Self-Made Validation and How I Finally Moved On
neginasu
2
1.6k
O Que É e Como Funciona o PHP-FPM?
marcelgsantos
0
200
Claude Agent SDK を使ってみよう
hyshu
0
1.4k
技術的負債の正体を知って向き合う
irof
0
260
Reactive Thinking with Signals and the Resource API
manfredsteyer
PRO
0
110
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.5k
Amazon Verified Permissions実践入門 〜Cedar活用とAppSync導入事例/Practical Introduction to Amazon Verified Permissions
fossamagna
2
100
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
500
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
272
21k
Balancing Empowerment & Direction
lara
5
700
A better future with KSS
kneath
239
18k
Embracing the Ebb and Flow
colly
88
4.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1k
Testing 201, or: Great Expectations
jmmastey
45
7.7k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
How to Ace a Technical Interview
jacobian
280
24k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
Reflections from 52 weeks, 52 projects
jeffersonlam
353
21k
A Tale of Four Properties
chriscoyier
161
23k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい