01Chapter 1: How collaborative filtering worksCollaborative filtering (CF) is a way to predict what a user will like by using the behavior of many users. It does not need to know anything about the items themselves. This chapter gives the working model, contrasts CF with content-based recommendation, and lists the common errors. Later chapters 6 min read
02Chapter 2: Explicit and implicit feedbackThis chapter assumes you know basic Python, NumPy arrays, and the idea of a user-item matrix from the previous chapter. It covers the two kinds of signal that fill that matrix, how they differ, and how to turn a raw event log into usable matrices.6 min read
03Chapter 3: The user-item matrix and why it is sparseThis chapter assumes you know basic Python, can read NumPy arrays, and understand matrices and averages. Every method later in the tutorial starts from the object built here. That includes neighborhood methods, matrix factorization, and evaluation. If the matrix is wrong, everything after it is wron5 min read
04Chapter 4: Measuring similarity: cosine, Pearson, JaccardNeighborhood methods rest on one step: score how alike two users or two items are. This chapter covers three similarity measures, what each one assumes, and where each one fails. It assumes you can read basic Python and NumPy, know dot products and vector norms, and know what the user-item matrix fr5 min read
05Chapter 5: User-based collaborative filteringThis chapter assumes you know basic Python and NumPy, and that you have read the earlier chapters on the user-item matrix and on similarity measures (cosine, Pearson, Jaccard). Here you will build a user-based recommender step by step, and see where it fails.5 min read
06Chapter 6: Item-based collaborative filteringItem-based collaborative filtering predicts a user's rating of an item from the ratings that same user gave to similar items. "Similar" is defined by how all users rated the items, not by item content. This chapter covers how the method works, how to implement it, and where it fails.5 min read
07Chapter 7: Predicting ratings and producing top-N listsThis chapter turns similarity scores into predicted ratings and then into a ranked list of recommendations. It assumes you can already build a user-item matrix, compute cosine or Pearson similarity, and explain the idea behind user-based and item-based collaborative filtering (CF). It also assumes y5 min read
08Chapter 8: Splitting data without leakageThis chapter assumes you know basic Python and NumPy, and that you have built a user-item matrix as in the earlier chapters. Here you will learn how to divide interaction data into training and test sets so that your evaluation reflects how the recommender will behave on data it has not seen.5 min read
09Chapter 9: Evaluating recommendersThis chapter assumes you can write basic Python and NumPy. It also assumes you know how the user-item matrix and the neighborhood and factorization models from earlier chapters produce predicted scores. Here you will learn how to measure whether those scores are any good.5 min read
10Chapter 10: Latent factors and matrix factorizationThis chapter assumes you know the user-item matrix and its sparsity, and that you are comfortable with dot products and NumPy arrays. Neighborhood methods predict a rating by looking up similar users or items. Matrix factorization takes a different route. It learns a short vector for every user and 6 min read
11Chapter 11: Training with SGD and ALSThis chapter assumes you know the factorization model from the previous chapter: a rating is predicted as the dot product of a user vector and an item vector. It also assumes you are comfortable with NumPy, gradients at the level of "move against the slope", and solving a linear system.4 min read
12Chapter 12: Factorization for implicit feedbackThis chapter assumes you have read the earlier chapters on explicit versus implicit feedback, the user-item matrix, and SGD-based matrix factorization. You should be comfortable with NumPy and with solving small linear systems.6 min read
13Chapter 13: The cold start problemThis chapter assumes you know how a user-item matrix is built, how neighborhood prediction and matrix factorization work, and basic NumPy. Collaborative filtering predicts from past behavior, so it fails when there is little or no behavior to use. That failure is called the cold start problem.5 min read
14Chapter 14: Scaling to large catalogsThis chapter assumes you can write NumPy code and that you have read the chapters on neighborhood methods and matrix factorization. You should know what the item-item similarity matrix is and what the factor matrices P and Q hold.6 min read
15Chapter 15: Popularity bias and feedback loopsThis chapter assumes you can compute precision@k and recall@k, that you know how a user-item matrix is built, and that you have seen a trained recommender produce top-N lists. It covers why those lists lean toward popular items, how that lean grows over time, and what you can do about it.6 min read
16Chapter 16: Combining collaborative and content signalsThis chapter assumes you have read the earlier chapters on item-based collaborative filtering, matrix factorization, and the cold start problem. It also assumes you can read NumPy code and know what cosine similarity is.5 min read