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
320
What is Soft Memory Limit?
yagipy
1
720
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
「人を評価する AI」の設計と実装
ryoyanara
0
200
yield再入門 #phpcon
o0h
PRO
0
1k
メールのエイリアス機能を履き違えない
isshinfunada
0
240
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
480
運用ダッシュボードの設計を誰も教えてくれないのだけどみなさんどうしてるんですか? - チームに監視するという文化を根付かせるための第一歩を踏みたい -
satoshi256kbyte
1
120
Flow は今どうなっているか
mizdra
PRO
0
370
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
140
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
370
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
260
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
230
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
170
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
920
Featured
See All Featured
From π to Pie charts
rasagy
0
280
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
410
First, design no harm
axbom
PRO
2
1.2k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Navigating Weather and Climate Data
rabernat
0
470
Technical Leadership for Architectural Decision Making
baasie
3
470
The Limits of Empathy - UXLibs8
cassininazir
1
600
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
230
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
250
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい