Skip to content

feat: add KNN-based user collaborative filtering (Issue #51)#1661

Open
jahnavichalla19-Jaanu wants to merge 1 commit into
leonagoel:mainfrom
jahnavichalla19-Jaanu:feat/knn-collaborative-filtering
Open

feat: add KNN-based user collaborative filtering (Issue #51)#1661
jahnavichalla19-Jaanu wants to merge 1 commit into
leonagoel:mainfrom
jahnavichalla19-Jaanu:feat/knn-collaborative-filtering

Conversation

@jahnavichalla19-Jaanu

Copy link
Copy Markdown

closes #51

  • Add knn_collaborative.py with KNNCollaborativeRecommender
  • Implements cosine similarity between users via sklearn
  • Finds top-K similar users and recommends their highly rated items
  • Adds method=knn query param to GET /api/recommend endpoint
  • Add tests/test_knn_collaborative.py with 15 unit tests

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @jahnavichalla19-Jaanu! This is your first contribution here!

Labels added: gssoc:approved | mentor:leonagoel | status:review-needed

PR Description Checklist:

NO - What changed section
NO - Why section
NO - How to test section
YES - Related issue linked

⚠️ Some required sections are missing. Please update your PR description.

What happens next:

  1. @leonagoel will review your changes
  2. CI checks must pass
  3. Once approved, this PR will be auto-merged

⏱️ Please respond to review comments within 48 hours.

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @jahnavichalla19-Jaanu!

Thank you for your first pull request! Here's what happens next:

Step What Who
1 CI runs lint + smoke test 🤖 Automated
2 Code review 👤 @leonagoel
3 mentor:leonagoel label added 👤 Mentor
4 gssoc:approved label added 👤 Mentor
5 Auto-merge triggered 🤖 Automated
6 Points on leaderboard at 4 AM IST 🏆 GSSoC

⏱️ Please respond to any review comments within 48 hours.

📖 Resources:

Happy contributing! 🚀

@github-actions github-actions Bot requested a review from leonagoel June 14, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user-based collaborative filtering using KNN algorithm

1 participant