The problem
Every recommender family trades off cold start, diversity and explainability differently. Building them from scratch on the same data makes those trade-offs concrete before choosing a hybrid in production.
Approach
- Collaborative filtering: a sparse user × item matrix from MovieLens ratings, neighbours found with cosine similarity and k-NN, and ratings predicted as similarity-weighted averages. It discovers taste without metadata but suffers from cold start.
- Content-based filtering: TF-IDF on plot overviews plus genre, cast and crew features from TMDB 5000, ranked by cosine similarity. It works from day one and can explain why, but it over-specialises.
- Bayesian weighted rating: shrinks each item's mean rating toward the global mean in proportion to vote count, so a 9.5 from three voters doesn't beat an 8.7 from fifty thousand.
Result
A clear map of when to use each family and how to compose them, applied directly to the hybrid content-based and collaborative matching I build at DealCircle.
