Log inStart free
LESSON 4.41 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Neighborhood collaborative filtering

Watch a blank rating filled in from users and films that rate alike.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.41 · NEIGHBOR BAY6 USERS · 8 FILMS · 20 BLANKS
01
Stage 1 of 6 · Rating matrix
Collaborative filtering fills blanks from the other ratings. The target is user 2's rating of film 7.
Explain it simply

Each row is a user and each column is a film. A shaded cell holds a rating from 1 to 5 stars. A dashed cell is blank, because that user never rated that film. User 6 and film 8 are brand new, so their row and column are empty.

A grid of 6 users and 8 films. 28 cells hold ratings from 1 to 5, and 20 cells are blank. User 6 and film 8 have no ratings. The cell of user 2 for film 7 shows a question mark.

rating (stronger shade = more stars)blank: not ratedbelow the user's meanabove the user's mean; predictionsimilarity and neighbors
film12345678user1234565413242345?154333245553452554the rating matrixr(2, 7) = ? 28 of 48 cells ratedfilm12345678user1234565413242345?154333245553452554the rating matrixr(2, 7) = ? 28 of 48 cells rated
Toy: the 4.C6 matrix · 6 users × 8 films · ratings 1–5 · 20 blanks
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
rui∈{1,…,5}r^2,7=  ?\sy{r}{data}{r_{ui}} \in \{1, \dots, 5\} \qquad \sy{p}{out}{\hat r_{2,7}} = \;?
r2⋅=(4, ?, 2, 3, 4, 5, ?, ?)r_{2\cdot} = (4,\ ?,\ 2,\ 3,\ 4,\ 5,\ ?,\ ?)

Each known cell holds one rating from 1 to 5.

Common mix-ups

MYTHRaw star ratings show which users share a taste.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01On centered user-user, does film 7's prediction go up or down at k = 1?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.