Calculating similarity

There are three fundamental approaches to calculating similarity, as follows:

  • Collaborative filtering algorithms take user ratings or other user behaviors and make recommendations based on what users with similar behaviors liked or purchased
  • The content-based algorithm uses the properties of the items to find items with similar properties
  • A hybrid approach combines collaborative and content-based filtering

Let's take a look at each approach in detail in the following sections.

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.