This project is a simple content-based recommender system that suggests cars to a customer based on their preferences for features like mileage (mpg), displacement, horsepower, and weight.
To recommend cars that are most similar to a given car using the K-Nearest Neighbors algorithm.
The dataset used is mtcars.csv
, which contains specifications of various car models.
- Miles per Gallon (mpg)
- Displacement
- Horsepower
- Weight
NearestNeighbors
fromscikit-learn
- Finds the most similar cars using Euclidean distance between feature vectors.
This project is based on the following course: LinkedIn Learning - Building a Recommendation System with Python Machine Learning and AI
The notebook predicts cars similar to a given input and prints the top 3 most similar cars as recommendations.
Feel free to explore and improve!