Giter Club home page Giter Club logo

car-price-prediction's Introduction

Car Price Prediction

A model to predict the price of a used car should be developed in order to assess its value based on a variety of characteristics. Several factors affect the price of a used car, such as company, model, year, transmission, distance driven, fuel type, seller type, and owner type. As a result, it is crucial to know the car's actual market value before purchasing or selling it..

Steps:

  1. Creating a new Conda env.
  2. Training.
  3. Execution
  4. Testing of the Model.
  5. Dataset

1. Creating a new Conda environment

Its always better to implement a project in a new environment as you can know the exact requirements needed for the project to run. When we create a new environmen, we are starting with no pre-installed packages or tools. So to create a new environment in anaconda prompt use the command : conda create -n carprice python=3.6

and now activate and switch to this environment using the command: conda activate carprice

2. Training

Move to the location where you have cloned this repo, and now open the jupyter notebook from this directory. now run every cell in the notebook.

After every cell is done running, we see a new file with ".pkl" extension has been created in the same src folder. This file contains our model. A web interface has been developed using flask and HTML and can be used for prediction.

3.Working of the Model on real-time user inputs

I recommend to install the following packages in the "carprice" environment

- "flask" package : `pip install flask` command.

- "jsonify" package : `pip install jsonify` command.

- "requests" package : `pip install requests` command.

- "numpy" package : `pip install numpy` command.

- "sklearn" package : `pip install sklearn` command

Run the app.py in the anaconda prompt using python3 app.py then open the web-address displayed below.

4.Testing the model

A html page opens and enter the values according to the HTML file and the price is predicted.

5.Dataset

The data we have used in this project was downloaded from Kaggle. It was uploaded from Cardekho.com . The dataset consists of 301 rows and 9 columns with no null values. Column data consist of independent Features. The independent features contain both categorical and numeric values.

car-price-prediction's People

Contributors

iyashk avatar raghava12457 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.