Hey , I am making a marketplace platform in flask & postgres and i would like to add a recommendation algorithm Is this task possible to do in a deadline of 50 days with no prior knowledge of Machine learning
This is kind of a low effort post but I’ll bite. I think your issue, if you’re only now building a platform, is lack of data. Recommender systems typically require data, be it history of the users’ interactions or at least data about the items being recommended. If you are creating a platform entirely from cold start this will be a challenge. If your items have semantic meaning, maybe generate text embeddings for the names/descriptions and then on the product page add a tab such as “Similar items…” which retrieves the top 5 neighbors per those text embeddings. Boom, recommender system.
Personalized recommender system? No, not doable. This requires separate setup, model serving, regular retraining since typical collaborative filtering does not support adding users and items. Besides, it makes no sense if you don’t have prior data.
However, implementing popularity-based system, without personalization, is possible. This is typically just simple Bayesian statistics, doable in 10-15 lines of Python. See e.g.:
- https://arpitbhayani.me/blogs/bayesian-average/
- https://www.evanmiller.org/how-not-to-sort-by-average-rating.html
- https://www.evanmiller.org/ranking-items-with-star-ratings.html