GithubHelp home page GithubHelp logo

ai_final_project's Introduction


Group 23: Team Beta


Movie Recommender System

image info

This is a simple movie recommender system built using Python and Streamlit. The recommender system suggests similar movies to the user based on the movie they select from the dropdown menu. The similarity between movies is calculated using cosine similarity.

Data

The data used for building this system is taken from two CSV files - movies.csv and ratings.csv. The movies.csv file contains information about movies, such as movie ID, title, and genre. The ratings.csv file contains movie ratings provided by different users.

How it Works

The recommender system works by first merging the movies and ratings data. Then, it creates a pivot table using the userId, title, and rating columns. The pivot table is filled with 0 values for NaN values.

Next, the system calculates the cosine similarity between movies using the pivot table. The cosine similarity is a measure of similarity between two non-zero vectors of an inner product space that measures the cosine of the angle between them. The higher the cosine similarity between two movies, the more similar they are.

A function is defined to get the top 10 similar movies to the selected movie. The function takes the selected movie, cosine similarity matrix, and pivot table as inputs. It then returns the indices of the top 10 similar movies, which are then used to display the titles of those movies.

Requirements

This project requires the following Python libraries to be installed:

You can install the following dependencies using

pip install <depedency>

streamlit
pandas
Pillow
scikit-learn

How to Run

To run the recommender system, navigate to the project directory in the command prompt and type

streamlit run app.py

This will start the Streamlit app in your default browser.

ai_final_project's People

Contributors

eben-success avatar

Stargazers

Eugene Cobbah 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.