Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Suggestion / Recommendation Algorithm

I am looking for a simple suggestion algorithm to implement in to my Web App. Much like Netflix, Amazon, etc... But simpler. I don't need teams of Phd's working to get a better suggestion metric.

So say I have:

  • User1 likes Object1.
  • User2 likes Object1 and Object2.

I want to suggest to User1 they might also like Object2.

I can obviously come up with something naive. I'm looking for something vetted and easily implemented.

like image 873
Dan.StackOverflow Avatar asked Dec 04 '09 21:12

Dan.StackOverflow


People also ask

Which algorithm is used for suggestions?

Collaborative filtering (CF) and its modifications is one of the most commonly used recommendation algorithms. Even data scientist beginners can use it to build their personal movie recommender system, for example, for a resume project.

How do you create a recommendation algorithm?

Easiest way to build a recommendation system is popularity based, simply over all the products that are popular, So how to identify popular products, which could be identified by which are all the products that are bought most, Example, In shopping store we can suggest popular dresses by purchase count.

Which ML algorithm is used for recommendation system?

Singular value decomposition also known as the SVD algorithm is used as a collaborative filtering method in recommendation systems.


1 Answers

There are many simple and not so simple examples of suggestion algorithms in the excellent Programming Collective Intelligence

The Pearson correlation coefficient (a little dry Wikipedia article) can give pretty good results. Here's an implementation in Python and another in TSQL along with an interesting explanation of the algorithm.

like image 104
Yann Schwartz Avatar answered Oct 04 '22 07:10

Yann Schwartz