Skip to content

Built a machine learning model to predict used car prices using features like year, mileage, and brand. Applied Linear Regression for accurate price estimation, with data cleaning, feature encoding, and model evaluation using R² and MAE.

Notifications You must be signed in to change notification settings

Akshay8087/Car-Price-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Car Price Predictor

Image

A simple yet effective machine learning web app that predicts the resale price of used cars based on user input like brand, model, fuel type, kilometers driven, and more. This project combines data preprocessing, regression modeling, and a user-friendly Flask web interface to deliver instant car price predictions.

Prediction Demo


📚 Table of Contents


📌 Brief Description

This project aims to estimate the resale price of a used car using a machine learning model trained on real-world data scraped from Quikr.com. The application is built with Python, Flask, and scikit-learn, and it is deployed online for quick access. Users can select the car brand, model, fuel type, and enter usage details to receive an estimated selling price.


🚀 Live Demo


🧰 Tech Stack

  • Frontend: HTML, CSS (Bootstrap)
  • Backend: Python, Flask
  • ML Model: Linear Regression (scikit-learn)
  • Deployment: Heroku

🗃️ Project Structure

car_price_predictor/
├── application.py
├── requirements.txt
├── Procfile
├── LinearRegressionModel.pkl
├── quikr_car.csv
├── Cleaned_Car_data.csv
├── Quikr Analysis.ipynb
├── templates/
│   └── index.html
├── static/
│   └── css/
│       └── style.css
├── demo.png
├── predict.png
└── README.md

📊 Dataset Info

Feature Description
Company Name of the car manufacturing company
Model Specific car model name
Year of Purchase The year the car was originally purchased
Fuel Type Type of fuel the car uses (e.g., Petrol, Diesel)
Kilometers Driven Total kilometers the car has been driven
Price Listed selling price of the car (in INR)

Source: Scraped from Quikr.com


⚙️ How to Run Locally

  1. Clone the repository
git clone https://github.com/Akshay8087/car_price_predictor.git
cd car_price_predictor
  1. Install dependencies
pip install -r requirements.txt\
  1. Run the Flask app
python application.py
  1. Open in browser
Visit: http://127.0.0.1:5000/

🔍 Model Performance

Model: Linear Regression
R² Score: 0.92 (on test data)
Notebook: All model training and evaluation steps are available in [Quikr Analysis.ipynb](Quikr Analysis.ipynb)

About

Built a machine learning model to predict used car prices using features like year, mileage, and brand. Applied Linear Regression for accurate price estimation, with data cleaning, feature encoding, and model evaluation using R² and MAE.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published