internalsGet Pro

Module 16 · Lesson 2 of 15Pro

Collaborative filtering and matrix factorization

Level
Intermediate
Topic
Recommendation and ranking systems
Reading time
20 min

When you finish this page you can

  1. Store a customer × product order matrix as a sparse matrix and estimate its memory, dense and sparse.
  2. Score products with item-to-item neighbours and with matrix factorization, and say where each breaks.
  3. Explain why an empty cell in an order matrix is not a “no”, and how confidence weights handle it.
  4. Train implicit-feedback factors with alternating least squares and judge them by recall@10 against best sellers on a time split.

Builds on 4 lessons

Start with lesson 113 min
  1. Recommendation systems: the problem they solve13 min
  2. Learned embeddings: vectors for words, items and users18 min
  3. Norms and distances between data points14 min
  4. Ranking metrics: NDCG, MAP and recall at k16 min

Video lesson · coming soon

Ten billion cells, one in ten thousand filled

now serves 5 million customers a day from a catalogue of 20 million products, and takes 500,000 orders a day. Joseph, who leads growth, wants two rows: “Customers also bought” on every product page, and “Picked for you” on the home page. The models behind them retrain every night.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan