Skip to content
StackDecode
AI & ML Atlas
Artificial IntelligencealgorithmInteractive simulation

Recommendation Algorithms

Predict what a user will like from their behaviour and others'.

The idea

Collaborative filtering says "people who liked what you liked also liked this". Find users (or items) with similar rating patterns and use their ratings to predict yours. Content-based methods use item features, and modern systems blend both with matrix factorisation or neural models.

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

AlienUpHeatFargoCocoJawsYouAnaBenCyDiEli1225?4552222445531222445254
  • liked
  • disliked
  • prediction

Ratings from 1 to 5 (blank = not seen). What would You rate "Coco"? We will ask people with similar taste.

target:
Coco
1/4

User-based collaborative filtering: "people like you also liked…".

Step by step

  1. 1Collect a user-item rating matrix.
  2. 2Measure similarity between users (for example cosine).
  3. 3Predict a missing rating as a similarity-weighted average of similar users' ratings.
  4. 4Recommend the unseen items with the highest predictions.

Where it is used

Streaming, shopping and social feeds.

Watch out for

Cold start (new users or items), popularity bias and filter bubbles.

Related