concept method in category recommender system

This is an excerpt from Manning's book Practical Recommender Systems.
You’ll try out this model on historical data to see if you can use it to predict a user’s behavior. For example, if you have data showing what users bought last month, then you can create the model using the three first weeks of data to see how well the model recommends things that the users bought in the last week of your month of data. It might be better at predicting what the user has bought compared to a baseline recommender system, which can be as simple as a method that returns the most popular items. If it’s doing well, you can expose it to part of your users and see if you can track improvement. If you see improvement, then it can go into production; otherwise, it’s back to the drawing board.
We need a way to test the error between the actual ratings and the calculated ones, so you need a predict rating method as shown in the following listing that you can view at /builder/matrix_factorization_calculator.py. The method is identical to the prediction method that will be used in the end.
A way that allows you to use a sparse matrix of ratings is with the method first tried by Simon Funk—the Funk SVD.