<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/medium-mnoeswsje" -->

---
title: Medium | daily.dev
description: A developer revisits a 2020 B.Tech final-year project — a hybrid movie recommendation engine combining content-based and collaborative filtering via SVD — and...
canonical: https://daily.dev/posts/medium-mnoeswsje
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Medium | daily.dev
og:description: A developer revisits a 2020 B.Tech final-year project — a hybrid movie recommendation engine combining content-based and collaborative filtering via SVD — and...
og:url: https://daily.dev/posts/medium-mnoeswsje
og:image: https://api.daily.dev/og/posts/mNoeSwSJE.png
og:image:alt: Medium
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Medium

**[Medium](https://daily.dev/sources/medium_js)** · 15 min read · 0 upvotes · 0 comments

## Summary

A developer revisits a 2020 B.Tech final-year project — a hybrid movie recommendation engine combining content-based and collaborative filtering via SVD — and rebuilds it as a live web app in 2026. The rebuild includes a proper held-out benchmark against standard baselines (popularity, item-based k-NN, SVD alone, content-only, and the hybrid), uncovering two real bugs: item-KNN being skewed by single-rating items and SVD overfitting due to stale hyperparameters. After fixes, the hybrid beats both its individual components but loses to item-based k-NN on the small dataset — an honest result the author reports plainly. The post also contextualizes how the field has evolved from explicit weighted hybrids to transformer-based foundation models and generative retrieval, while noting the underlying problems (cold start, sparsity, content vs. collaborative tension) remain unchanged.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://isayushsingh.medium.com/i-built-a-netflix-style-recommender-in-2020-then-rebuilt-it-five-years-later-to-see-what-i-8fcee28ede2e>

## Questions this post answers

### Why did my item-based k-NN recommender score almost zero in an offline evaluation?

Item-based k-NN can be fooled by items with only one rating, since an item rated by exactly one person appears trivially 'perfectly similar' to whatever else that person rated, a classic small-sample pathology in cosine similarity. The fix is significance weighting, damping predictions toward the global mean in proportion to how little evidence backs them. Applying this fix raised NDCG@10 from about 0.0002 to 0.157.

_Anyone debugging collaborative filtering pitfalls like this can find similar deep dives on daily.dev._

### How did Netflix change its recommendation system architecture from the classic matrix factorization approach?

Netflix replaced its collection of many small, specialized recommendation models with a single unified autoregressive transformer foundation model, architecturally descended from large language models. It ingests a user's entire interaction history (clicks, pauses, scrolls, time-of-day) as a token sequence, uses low-rank compression to extend context to hundreds of past events, and key-value caching to keep millisecond inference latency despite the larger model, serving over 300 million users.

_Engineers weighing classic collaborative filtering against transformer-based recommenders can track this shift on daily.dev._

### Does a hybrid content-collaborative movie recommender outperform item-based k-NN on a small sparse dataset?

No, on a small sparse dataset (roughly a thousand rated movies, a few hundred users), a well-implemented item-based k-NN outperformed a hybrid weighted-average blend of SVD and content-based filtering, even though the hybrid beat each of its individual components. Matrix factorization typically needs substantially more data to pull ahead of memory-based collaborative filtering, making k-NN a genuinely strong baseline at small scale.

_Developers choosing a baseline recommender for limited data can weigh trade-offs like this via daily.dev._

---

Tags: [#machine-learning](https://daily.dev/tags/machine-learning), [#python](https://daily.dev/tags/python), [#recommendation-systems](https://daily.dev/tags/recommendation-systems)

[View this post on daily.dev](https://daily.dev/posts/medium-mnoeswsje)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Medium","url":"https://daily.dev/posts/medium-mnoeswsje","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/medium-mnoeswsje"},"datePublished":"2026-07-18T08:11:24.457Z","dateModified":"2026-09-13T20:41:06.003Z","description":"A developer revisits a 2020 B.Tech final-year project — a hybrid movie recommendation engine combining content-based and collaborative filtering via SVD — and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c9b6a07ef2ff37fc6e960d178e177f7a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c9b6a07ef2ff37fc6e960d178e177f7a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/medium-mnoeswsje","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"machine-learning,python,recommendation-systems","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Medium"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/medium-mnoeswsje#faq","mainEntity":[{"@type":"Question","name":"Why did my item-based k-NN recommender score almost zero in an offline evaluation?","acceptedAnswer":{"@type":"Answer","text":"Item-based k-NN can be fooled by items with only one rating, since an item rated by exactly one person appears trivially 'perfectly similar' to whatever else that person rated, a classic small-sample pathology in cosine similarity. The fix is significance weighting, damping predictions toward the global mean in proportion to how little evidence backs them. Applying this fix raised NDCG@10 from about 0.0002 to 0.157. Anyone debugging collaborative filtering pitfalls like this can find similar deep dives on daily.dev."}},{"@type":"Question","name":"How did Netflix change its recommendation system architecture from the classic matrix factorization approach?","acceptedAnswer":{"@type":"Answer","text":"Netflix replaced its collection of many small, specialized recommendation models with a single unified autoregressive transformer foundation model, architecturally descended from large language models. It ingests a user's entire interaction history (clicks, pauses, scrolls, time-of-day) as a token sequence, uses low-rank compression to extend context to hundreds of past events, and key-value caching to keep millisecond inference latency despite the larger model, serving over 300 million users. Engineers weighing classic collaborative filtering against transformer-based recommenders can track this shift on daily.dev."}},{"@type":"Question","name":"Does a hybrid content-collaborative movie recommender outperform item-based k-NN on a small sparse dataset?","acceptedAnswer":{"@type":"Answer","text":"No, on a small sparse dataset (roughly a thousand rated movies, a few hundred users), a well-implemented item-based k-NN outperformed a hybrid weighted-average blend of SVD and content-based filtering, even though the hybrid beat each of its individual components. Matrix factorization typically needs substantially more data to pull ahead of memory-based collaborative filtering, making k-NN a genuinely strong baseline at small scale. Developers choosing a baseline recommender for limited data can weigh trade-offs like this via daily.dev."}}]}
```

