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

Matrix factorization

Watch two thin matrices learn hidden tastes and fill in a sparse rating table.


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.42 · FACTOR BAY23 KNOWN · 20 BLANK · 5 HELD OUT
01
Stage 1 of 6 · The rating matrix
Six users rate eight films with 1 to 5 stars. Of 48 cells, 23 are known; 5 dashed cells are held-out data.
Explain it simply

Each row is a user and each column is a film. A number is a star rating, and most cells are blank because nobody rates everything. User 6 and film 8 are brand new, with no ratings at all. Five known ratings are hidden, with dashed edges, to check the guesses later.

A table of 6 users by 8 films holds star ratings. It has 23 known cells, 20 blank cells and 5 dashed cells held out as a test. User 6 and film 8 have no ratings.

ratings or playsheld-out celluser and film factors, k, λprediction and top pickloss and error
?4133424254513?523?3553?525?the rating matrixuserfilmR stars1234561234567823 known · 20 blank · 5 held out?4133424254513?523?3553?525?the rating matrixuserfilmR stars1234561234567823 known · 20 blank · 5 held out
Toy: 6 users × 8 films (the 4.C6 toy) · seeded
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
rui=stars or plays of user u for film i\sy{r}{data}{r_{ui}} = \text{stars or plays of user } u \text{ for film } i
r12=4,23 known of 48r_{12} = 4,\quad 23 \text{ known of } 48

Each cell holds what user u gave film i, or nothing.

Common mix-ups

MYTHMore factors always give better predictions.

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

Predict, then reveal
3 CHECKS · PRO
Q01With λ = 1 and star ratings, does the test error go up or down with 1 factor instead of 2?

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.