concept algorithm in category recommender system

appears as: n algorithm, lgorithms, The algorithms, algorithm, algorithms, lgorithm, The algorithm, The algorithm
Practical Recommender Systems

This is an excerpt from Manning's book Practical Recommender Systems.

Certain systems explain the recommendations. Recommenders with that ability are called white-box recommenders; those that don’t are called black-box recommenders. Figure 1.14 shows examples of each. The distinction is important to consider when choosing an algorithm because not all provide a clear path back to the reasons for a prediction.

Figure 1.14. Black-box (from Netflix) and white-box (from Amazon) recommendations

Deciding whether you want to produce a white-box or black-box recommender can put constraints on which algorithms you use. The more your system needs to explain, the simpler the algorithm. Often you can consider the decision as shown in figure 1.15. The better the quality of the recommendation, the more complex and the harder to show explanations. This problem is known as model accuracy-model interpretation trade-off.

This simple scenario can also work as a way to verify that the system is running. For example, the algorithm you’ll look at in this chapter takes a couple of hours to run on the full data set. If you’re using that to debug the algorithm, you’ll never finish. You’ll do one correction and start the builder, then life happens, and when the algorithm finishes, you’ve forgotten everything. If you’re unlucky, your next step is to do a new correction that basically undoes the correction you did first. Do yourself a favor and follow the steps in figure 9.4.

Figure 9.4. Execute the algorithm by hand to test if you’ve data and whether it produces the right output.

How complicated is the algorithm? Is it easy to implement? Does it require mathematics that is difficult to implement or performance-wise too much to do on a computer? And if you create a small example using a small data set, is it possible to make a naive implementation in, for example, a Jupyter notebook to illustrate that it can be done? When these questions are satisfied, you can start implementing your algorithm.