Coder Social home page Coder Social logo

gareeeb / collaborative-filtering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dkaushik94/collaborative-filtering

0.0 0.0 0.0 3.77 MB

Collaborative filtering on 100k movie rating dataset.

License: MIT License

Jupyter Notebook 98.39% Perl 0.85% Shell 0.76%

collaborative-filtering's Introduction

Movie Recommendations using Collaborative Filtering.

Dataset: 100k movie ratings dataset. Source: Data link

The idea/concept: In the simplest sense, Collaborative Filtering is the process of recommending users items based on what other users think of a those items. For example, consider two users Peter and John. Peter likes the colors, Blue , Green, Black and Yellow. John likes Green, Black and Blue. So we can predict that John also might, with some certainty, like Yellow as well. This is the process of basing recommendations based on users with similar tastes.

The algorithm says there must be a certain matrix X and a certain matrix θ such that, the dot product of these matrices, give us a resultant matrix which is the user VS item prediction score matrix. This two factor matrices approach is also called Matrix Factorization.

PRED_SCORE = θ.tranpose().dot(X), here the user j will have given PRED_SCORE[ i ][ j ] to a movie i.

We initialise θ and X matrices with random values and start a gradient descent on the cost function, which here, we are using the squared loss error. The resultant matrices after convergence will give us predict ratings. Thereon, we can gather top 10-20-30..N ratings for a user and recommend the corresponding list of items, which here are movies.

Recommendations.

The algorithm has been implemented and analyzed in this repository.

Relevant links:

collaborative-filtering's People

Contributors

dkaushik94 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.