O'Reilly logo

Machine Learning with Spark - Second Edition by Nick Pentreath, Manpreet Singh Ghotra, Rajdeep Dua

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

Collaborative filtering

Collaborative filtering relies only on past behavior, such as previous ratings or transactions. The idea behind this is the notion of similarity.

The basic idea is that the user gives ratings to items, implicitly or explicitly. Users who had a similar taste in the past will have a similar taste in the future.

In a user-based approach, if two users have exhibited similar preferences, that is, patterns of interacting with the same items in broadly the same way, then we would assume that they are similar to each other in terms of taste. To generate recommendations for unknown items for a given user, we can use the known preferences of other users that exhibit similar behavior. We can do this by selecting a set of similar ...

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