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
89
簡易的な推薦機能を実装する
HiroyukiYagihashi
September 23, 2020
Tweet
Share
More Decks by HiroyukiYagihashi
See All by HiroyukiYagihashi
What is Soft Memory Limit?
yagipy
1
430
Building markdown editor using Rust’s parser
yagipy
0
2.1k
OSSに貢献した話と社内での取り組みについて
yagipy
1
250
GitHub oneliner command
yagipy
0
69
Other Decks in Programming
See All in Programming
PostmanでAPIの動作確認が楽になった話
h455h1
0
130
StreamlitとTerraformでデータカタログを作った話
gussan0223
0
300
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
2
220
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
250
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
370
1인 개발자로 행복하게 살기 - GDG 송도 헬로월드 2024
benjaminkim
1
5.6k
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
340
Hanami and htmx
bkuhlmann
0
190
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
3
470
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
26
7.8k
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
350
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
170
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Documentation Writing (for coders)
carmenintech
59
3.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
243
20k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
We Have a Design System, Now What?
morganepeng
42
6.7k
Making the Leap to Tech Lead
cromwellryan
123
8.5k
Writing Fast Ruby
sferik
620
60k
Robots, Beer and Maslow
schacon
PRO
155
7.9k
Building Effective Engineering Teams - LeadDev
addyosmani
27
1.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
220
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
29
6k
The Cult of Friendly URLs
andyhume
74
5.7k
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を勧める機能を作成した • 類似度はピアソン相関係数を使って取得したい • 意外性も考慮したい