Coder Social home page Coder Social logo

swastikkdas / movie-recommendation-system---sritesh-suranjan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sriteshsuranjan/movie-recommendation-system---sritesh-suranjan

0.0 0.0 0.0 22 KB

Movie Recommendation System

Jupyter Notebook 100.00%

movie-recommendation-system---sritesh-suranjan's Introduction

Movie-Recommendation-System---Sritesh-Suranjan

Movie Recommendation System

Overview

This project implements a movie recommendation system using content-based filtering. It leverages natural language processing (NLP) techniques and cosine similarity to recommend movies based on their textual content, specifically the combination of movie overviews and genres.

Table of Contents

Introduction

The Movie Recommendation System uses content-based filtering to recommend movies based on their textual information, combining movie overviews and genres. It employs natural language processing (NLP) techniques and cosine similarity to determine movie similarity.

Data

The dataset (top10K-TMDB-movies.csv) contains information about movies, including id, title, overview, and genre.

Exploratory Data Analysis

The initial exploration involves displaying the first 10 rows, generating summary statistics, and checking for null values.

Data Preprocessing

Data preprocessing includes selecting relevant columns (id, title, overview, genre), creating a new column tags by concatenating overview and genre, and dropping irrelevant columns (overview, genre).

Text Vectorization

Text vectorization is performed using CountVectorizer from sklearn.feature_extraction.text to convert text data into numerical vectors.

Similarity Calculation

Cosine similarity is calculated based on the vectorized tags, creating a similarity matrix.

Movie Recommendations Function

A function named recommends is defined to recommend movies based on user input.

Example Recommendations

An example demonstrates recommending movies for a specific input movie title, such as "Iron Man."

Model Saving and Loading

The processed data (new_data) and the similarity matrix are saved using the pickle module. Loading the model back into the program is also demonstrated.

Dependencies

  • Python 3.x
  • scikit-learn
  • pandas
  • numpy
  • matplotlib
  • seaborn

Usage

  1. Install the required dependencies: pip install -r requirements.txt
  2. Run the Python script or Jupyter notebook.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

movie-recommendation-system---sritesh-suranjan's People

Contributors

sriteshsuranjan 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.