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
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
2024年度SecHack365 アシスタントを囲む会
yagipy
0
100
LLMの活用方法と課題
yagipy
0
330
What is Soft Memory Limit?
yagipy
1
730
Building markdown editor using Rust’s parser
yagipy
0
2.6k
GitHub oneliner command
yagipy
0
120
Other Decks in Programming
See All in Programming
Foundry Localでエージェント開発
seosoft
0
120
ハーネス設計入門 〜プロンプト、コンテキストの次〜
kinopeee
53
34k
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
810
AI駆動開発にグラフDBを重ねてみた
satoshi256kbyte
2
710
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
130
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
200
自分的「カンファレンスの楽しみ方」
syumai
0
180
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
290
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
330
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
200
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.5k
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Into the Great Unknown - MozCon
thekraken
41
2.7k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
From π to Pie charts
rasagy
0
350
Practical Orchestrator
shlominoach
191
12k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
400
30 Presentation Tips
portentint
PRO
1
390
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
260
sira's awesome portfolio website redesign presentation
elsirapls
0
390
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい