Skip to content

SahanUday/Car-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Car Price Prediction

Overview

This project predicts the prices of used cars based on features such as car make, year of manufacture, fuel type, and kilometers driven. The project utilizes machine learning algorithms to analyze the dataset and generate accurate predictions.

This repository contains all the code and resources for this project.

Steps

  1. Data Loading and Exploration
    • Load the car dataset (car data.csv) and perform initial exploration.
  2. Data Cleaning
    • Handle missing values (if any), encode categorical data, and prepare the dataset for modeling.
  3. Feature Engineering
    • Create meaningful features for the machine learning model.
  4. Model Development
    • Train machine learning models to predict car prices.
    • Evaluate model performance using metrics like R² score and mean squared error.
  5. Model Optimization
    • Fine-tune hyperparameters and improve accuracy.
  6. Prediction
    • Use the trained model to predict car prices for new data.

Code

The code for this project is available in the file:

  • Car_Price_Prediction.ipynb

Technologies/Tools

  • Programming Language: Python 3.10
  • Development Environments: Jupyter Notebook / Google Colab
  • Key Libraries:
    • pandas (pip install pandas)
    • scikit-learn (pip install scikit-learn)

Python Jupyter Pandas Scikit-Learn

Dataset

The dataset used in this project is:

  • car data.csv: A dataset containing 301 records of used cars with attributes such as Year, Selling Price, Present Price, Fuel Type, etc.

Features

The key features in the dataset include:

  • Year: Year of manufacture
  • Selling_Price: Price at which the car is sold
  • Present_Price: Current price of the car
  • Kms_Driven: Distance driven by the car in kilometers
  • Fuel_Type: Type of fuel used (Petrol/Diesel/CNG)
  • Seller_Type: Dealer or individual
  • Transmission: Manual or Automatic
  • Owner: Number of previous owners

Installation

To set up the environment for this project:

  1. Install Python 3.10 or later.
  2. Install required libraries using pip:
    pip install pandas scikit-learn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors