Content-based filtering

Content-based filtering, on the other hand, is based on a description of items and a profile of a user's preferences, which is combined as follows. First, the items are described with attributes, and to find similar items, we measure the distances between items using a distance measure, such as the cosine distance or Pearson coefficient (there is more about distance measures in Chapter 1, Applied Machine Learning Quick Start). Now, the user profile enters the equation. Given the feedback about the kinds of items the user likes, we can introduce weights, specifying the importance of a specific item attribute. For instance, the Pandora Radio streaming service applies content-based filtering to create stations, using ...

Get Machine Learning in Java - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.