This repository contains a Movie Recommendation System implemented in Python using a movie dataset with Content-based filtering. The system suggests movies to users based on their preferences and previous ratings.
The movie dataset used in this recommendation system is not included in this repository due to its large size. However, you can obtain a similar dataset from various sources such as MovieLens or IMDb.
Make sure to download the dataset and save it as a CSV file named movies.csv
. The dataset should contain information about movies, including their titles, genres, and ratings.
To run this recommendation system, you need to have the following dependencies installed:
- Python (version 3.6 or higher)
- pandas
- numpy
- scikit-learn
You can install the required dependencies using pip with the following command:
pip install pandas numpy scikit-learn
- Clone this repository to your local machine.
git clone https://github.com/your-username/movie-recommendation-system.git
- Download the movie dataset and save it as
movies.csv
in the cloned repository directory. - Open a terminal or command prompt and navigate to the repository directory.
- Run the
recommendation_system.py
script.
python recommendation_system.py
- The recommendation system will prompt you to enter a movie title for which you want recommendations. Type the title and press Enter.
- The system will generate a list of recommended movies based on your input and previous ratings.
- The script loads the movie dataset from the
movies.csv
file using pandas. - It preprocesses the data, including handling missing values and encoding categorical variables.
- The system prompts the user to enter a movie title.
- It then calculates the similarity between the entered movie and all other movies using a similarity metric (e.g., cosine similarity or Euclidean distance).
- Based on the similarity scores, the system recommends a list of movies that are similar to the input movie.
- The recommendations can be further improved by incorporating user ratings and preferences.
Contributions to this movie recommendation system are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.