O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

The basic intuition of IBCF is that, given a new user, the algorithm considers the user's purchases and recommends similar items through the following steps:

  1. For two given items, measure how similar they are in terms of having received similar ratings by similar users.
  2. Next, find the k-most similar items for each given item.
  3. Finally, for each user, identify the items that are most similar to the user's purchases.

The basic idea of UBCF is that, given a new user, we will identify its similar users and then recommend the top-rated items purchased by similar users through the following steps:

  1. Measure how similar each user is to the new one using popular similarity measures such as correlation and cosine.
  2. Next, identify the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required