The query is a user
The topic Learning to rank ordered documents for a query. Every (query, document) pair came with features, such as text matches, links and embeddings, and with a graded label or a click. A recommender orders items for a person: the next film, the songs of a playlist, the products for a basket. The query is now a user. Often nothing describes the user except what they did: which items they rated, bought, played or skipped.
That record is enough. People who agreed in the past tend to agree in the future, and items liked by the same people tend to be liked together. This topic turns that observation into models. It is the matrix of user ratings promised in the topic What machine learning is, and the last topic of the course.
Notation. There are users, indexed by , and items, indexed by . The feedback of user on item is : a rating from 1 to 5 stars, or a count such as the number of plays. is the set of pairs with known , is the number of items user rated, and is a prediction.
Everything a collaborative recommender knows sits in one matrix : a row per user, a column per item, an entry wherever the user left feedback. Three properties of this matrix shape every method below.
- It is almost empty. The Netflix Prize data held more than 100 million ratings by about 500,000 users of more than 17,000 films: about 1% of the cells.
- It is skewed. A few items collect most of the feedback. In the synthetic data of this topic, 18,872 ratings of 400 items by 600 users (7.9% of the cells), the 10% most popular items hold 53% of all ratings.
- Its gaps are not random. A user rates the films they chose to watch, and they chose them because they expected to like them. Whether a cell is filled depends on exposure, availability and the user's own choice. An empty cell is not a low rating, and it is not a neutral unknown either.
Explicit feedback, such as stars or thumbs, says how much a user liked an item, in both directions, and it is scarce. Implicit feedback, such as plays, purchases, clicks and watch time, is plentiful but has no negatives: a film not watched may be disliked or simply unknown. The first half of the topic works with ratings, the second with implicit feedback.
The product shows a short list, so the real task is to rank the items a user has not seen yet. It is the problem of the previous topic with users in place of queries. Predicting ratings is only a means, and the evaluation must measure the list.