Machine Learning

Matrix Completion & ALS

8:34

Plays from YouTube. Watch on YouTube

How does Netflix know what you might like before you've even watched it?

Meet Matrix Factorization & Collaborative Filtering: the mathematics behind modern recommendation systems.

We start with a sparse rating matrix, where users have rated only a small fraction of available items, then explore how machine learning can predict the missing entries.

From there, we break down latent factors, low-rank matrix approximations, dot-product predictions, and masked reconstruction loss including how compact user and item representations can capture hidden preferences.

Then we explore Alternating Least Squares (ALS), learning how to optimize user and item factors separately by repeatedly solving smaller regression problems.

Finally, we examine nonconvex optimization, cold-start problems, sparse observations, and evaluation on held-out ratings and why accurately reconstructing known ratings doesn't guarantee good recommendations.

The big idea: Recommendation systems don't need to know exactly why you like something. By learning shared patterns across users and items, they can predict preferences you haven't explicitly expressed.

Machine learning explained visually, one concept at a time.