GithubHelp home page GithubHelp logo

similarmoviespyspark's Introduction

SimilarMoviesPySpark

Item Base Collaborative Filtering

  • Collaborative Filtering is a technique or a method to predict a user's taste and find the items that a user might prefer on the basis of information collected from a various other users having similar tastes or preferences. it takes into consideration the basic fact that if person X and person Y have a certain reaction for some items then thay might have the same opinion for other items too.

User Based:

Here, we look for the users who have rated various items in the same way and then find the rating of the missing item with the help of these users.

Item Based:

Here, we explore the relationship between the pair of items (the user who bought Y, also bought Z). We find the misiong rating with the help of the ratings given to the other items by the user.

Similar Movies Project

  • Find every pair of movies that were watched by the same person.

  • Measure the similarity of their ratings across all users who watched both.

  • Sort by movie, then by similarity strength.

Item Base Collaborative Filtering Flow

Cosine Similarity Explained

Cosine similarity is described mathematically as the division between the dot product of vectors and the product of the Euclidean norms or magnitude of each vector.

Cosine Similarity Formula

Cosine similarity is a value bound by a constrained range of 0 and 1.

The similarity measurement is a measure of the cosine of the angle between the two non-zero vectors A and B.

Suppose the angle between the two vectors were 90 degrees. In that case, the cosine similarity will have a value of 0. This means that the two vectors are orthogonal or perpendicular to each other.

As the cosine similarity measurement gets closer to 1, then the angle between the two vectors A and B is smaller. The images below depict this more clearly.

Cosine Similarity Example 1

Cosine Similarity Example 2

similarmoviespyspark's People

Contributors

amin1384movahedi avatar

Watchers

 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.