Recommendation Systems
2
Tufts COMP 135: Introduction to Machine Learning https://www.cs.tufts.edu/comp/135/2019s/
Many ideas/slides attributable to: Liping Liu (Tufts), Emily Fox (UW) Matt Gormley (CMU)
- Prof. Mike Hughes
Recommendation Systems Prof. Mike Hughes Many ideas/slides - - PowerPoint PPT Presentation
Tufts COMP 135: Introduction to Machine Learning https://www.cs.tufts.edu/comp/135/2019s/ Recommendation Systems Prof. Mike Hughes Many ideas/slides attributable to: Liping Liu (Tufts), Emily Fox (UW) Matt Gormley (CMU) 2 Recommendation
2
Tufts COMP 135: Introduction to Machine Learning https://www.cs.tufts.edu/comp/135/2019s/
Many ideas/slides attributable to: Liping Liu (Tufts), Emily Fox (UW) Matt Gormley (CMU)
3
Mike Hughes - Tufts COMP 135 - Spring 2019
4
Mike Hughes - Tufts COMP 135 - Spring 2019
5
Mike Hughes - Tufts COMP 135 - Spring 2019
6
Mike Hughes - Tufts COMP 135 - Spring 2019
7
Mike Hughes - Tufts COMP 135 - Spring 2019
Supervised Learning Unsupervised Learning Reinforcement Learning
Collaborative filtering Content filtering
8
Mike Hughes - Tufts COMP 135 - Spring 2019
9
Mike Hughes - Tufts COMP 135 - Spring 2019
FEATURE VALUE is_round 1 is_juicy 1 average_price $1.99/lb
Key aspect: Have common features for each item
10
Mike Hughes - Tufts COMP 135 - Spring 2019
What features are necessary? What are pitfalls?
11
Mike Hughes - Tufts COMP 135 - Spring 2019
12
Mike Hughes - Tufts COMP 135 - Spring 2019
13
Mike Hughes - Tufts COMP 135 - Spring 2019
14
Mike Hughes - Tufts COMP 135 - Spring 2019
15
Mike Hughes - Tufts COMP 135 - Spring 2019
*() approximates the utility +#)
from the same user;
scores to the same item
16
Mike Hughes - Tufts COMP 135 - Spring 2019
random!
min
!,+ 2 $3
.$3 − #$
5,3 6 + 8 2 $
#$ 6
6 + 8 2 3
,3 6
6
17
Mike Hughes - Tufts COMP 135 - Spring 2019
min
2,4 5 ,.
6,. − 8,
9:. − +, − -. ; + = 5 ,
8, ;
; + = 5 .
:. ;
;
18
Mike Hughes - Tufts COMP 135 - Spring 2019
min
2,4 5 ,.
6,. − 8,
9:. − +, − -. ; + = 5 ,
8, ;
; + = 5 .
:. ;
;
19
Mike Hughes - Tufts COMP 135 - Spring 2019
20
Mike Hughes - Tufts COMP 135 - Spring 2019
Supervised Learning Unsupervised Learning Reinforcement Learning
Collaborative filtering Content-based filtering
21
Mike Hughes - Tufts COMP 135 - Spring 2019
Supervised Learning Unsupervised Learning Reinforcement Learning
Data, Label Pairs Performance measure Task data x label y
n=1
Training Prediction Evaluation
22
Mike Hughes - Tufts COMP 135 - Spring 2019
Supervised Learning Unsupervised Learning Reinforcement Learning
For each item n: x: User-Item Feature y: Rating Score Performance measure Task User-item Feature vector x Predicted rating y
n=1
Regressor / Classifier
Content-based filtering
23
Mike Hughes - Tufts COMP 135 - Spring 2019
23
Mike Hughes - Tufts COMP 135 - Spring 2019
Data Examples data x
Supervised Learning Unsupervised Learning Reinforcement Learning
n=1
Task summary
Performance measure
24
Mike Hughes - Tufts COMP 135 - Spring 2019
24
Mike Hughes - Tufts COMP 135 - Spring 2019
Data Examples Matrix M Specific entry indicies (i,j)
Supervised Learning Unsupervised Learning Reinforcement Learning
Task Low-rank factors
that reconstruct M
Performance measure
Value of M_ij
Collaborative filtering
25
Mike Hughes - Tufts COMP 135 - Spring 2019
26
Mike Hughes - Tufts COMP 135 - Spring 2019
Item ranking 1 2 3 4 5 6 7 8 Actual usage 1 1 1 1
27
Mike Hughes - Tufts COMP 135 - Spring 2019
28
Mike Hughes - Tufts COMP 135 - Spring 2019
29
Mike Hughes - Tufts COMP 135 - Spring 2019
30
Mike Hughes - Tufts COMP 135 - Spring 2019
recall (= TPR) precision
time, we want most of these to be relevant
31
Mike Hughes - Tufts COMP 135 - Spring 2019
Item ranking 1 2 3 4 5 6 7 8 Actual usage 1 1 1 1
32
Mike Hughes - Tufts COMP 135 - Spring 2019
33
Mike Hughes - Tufts COMP 135 - Spring 2019
recommend videos from the same camp
34
Mike Hughes - Tufts COMP 135 - Spring 2019