Machine Learning, FoundationsLesson 70 of 92

Module 7 · Learning without labels, and learning a representation

Recommendation: learning a vector per user and per item

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 8 of 10 in this chapter

This chapter’s goalCluster a dataset and defend the number of clusters with more than an elbow plot, reduce dimensionality with PCA and state how much information the reduction discarded, explain what an embedding is as a geometric object, and build a working nearest-neighbour search over pretrained embeddings without a GPU.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:55Not available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The matrix with holes in it

Users down the rows, items across the columns, ratings in the cells. Almost every cell is empty: a user who has rated 40 films out of 50,000 leaves 99.92% of their row blank. Recommendation is the problem of guessing the missing values.

Two families

Content-based. Describe items by their attributes (genre, price, text) and recommend items similar to what the user liked. Works for a brand-new item with no interaction history, which is its main advantage. Tends to be narrow: someone who watched three thrillers gets only thrillers.

Collaborative filtering. Ignore item attributes entirely and use the pattern of who interacted with what. “People who liked what you liked also liked this.” It finds connections no attribute list would suggest, and it fails completely for a new item or a new user, since neither has any pattern yet.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Recommendation: learning a vector per user and per item’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/recommendation-by-factorisation (Accessed: 29 November 2026).