Git Product home page Git Product logo

sky9262 / ml_vehicle_price_prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 605 KB

Utilizing machine learning techniques, this project predicts vehicle prices based on features like age, fuel type, and more. Models include Linear Regression, Lasso Regression, and Random Forest. Dataset sourced from Kaggle.

Jupyter Notebook 100.00%
lasso-regression linear-regression machine-learning matplotlib matplotlib-pyplot ml ml-engineering prediction regression-algorithms seaborn

ml_vehicle_price_prediction's Introduction

Vehicle Price Prediction: Machine Learning Models for Car Valuation

This project aims to build a Machine Learning model to predict the price of vehicles based on various features. The dataset used for this project is sourced from Kaggle, containing information about different cars including their selling price, age, fuel type, seller type, and transmission type.

DataSet Visualization

Overview

In this project, three different machine learning algorithms are implemented for vehicle price prediction:

  1. Linear Regression
  2. Lasso Regression
  3. Random Forest Regressor

Each model is trained using the provided dataset and evaluated for its accuracy. The best-performing model can then be used to predict vehicle prices based on input features.

Prerequisites

Before running the code, ensure you have the following dependencies installed:

  • Python 3.x
  • Jupyter Notebook
  • pandas
  • matplotlib
  • seaborn
  • scikit-learn

You can install the dependencies using pip:

pip install pandas matplotlib seaborn scikit-learn

Usage

  1. Clone the repository to your local machine:
git clone https://github.com/sky9262/vehicle-price-prediction.git
  1. Navigate to the project directory:
cd vehicle-price-prediction
  1. Open the Jupyter Notebook Vehicle_Price_Prediction.ipynb:
jupyter notebook Vehicle_Price_Prediction.ipynb
  1. Follow the instructions in the notebook to execute each cell and train the models.

  2. Once the models are trained, you can use them to make predictions on new data.

Files Included

  • Vehicle_Price_Prediction.ipynb: Jupyter Notebook containing the code for data preprocessing, model training, and evaluation.

  • car data.csv: Dataset file containing information about vehicle features and selling prices.

  • README.md: This file providing an overview of the project and instructions for usage.

  • Model files (*.pickle): Saved models for each regression algorithm.

Results

Each model's performance is evaluated using the coefficient of determination (R² score) on a test dataset. The model with the highest R² score indicates the best performance. Additionally, visualizations are provided to compare the true selling prices with the predicted prices for each model.

Below are the Images of result after training with 3 diffreent algorithms:

True vs Predicted Values (Using LinearRegression)

True vs Predicted Values (Using Lasso Regression)

True vs Predicted Values (Using RandomForestRegressor)

ml_vehicle_price_prediction's People

Contributors

sky9262 avatar

Watchers

 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.