this post was submitted on 14 Nov 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 10 months ago
MODERATORS
 

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

top 3 comments
sorted by: hot top controversial new old
[–] KingsmanVince@alien.top 1 points 10 months ago
[–] kebabmybob@alien.top 1 points 10 months ago

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.

[–] qalis@alien.top 1 points 10 months ago

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

- https://www.evanmiller.org/bayesian-average-ratings.html